A bot used by the Babel
team to automate common tasks in GitHub repositories. Allows taking action on events triggered from the GitHub webhooks API.
The bot is build as an AWS Lambda function, using AWS API Gateway to map the requests to an endpoint.
Needs Info
label is addedHas PR
label to issues that have been referenced in a PR@babel-bot move to babel/babylon
)src/handlers
with the name matching the name of the GitHub event
action
or state
(dependening on the shape of the GitHub payload) you want your code to be triggered forExamples of existing event rules can be found in src/handlers
.
Visit the guide for detailed instructions.
Examples of how to test a handler can be seen in src/handlers/issues/__tests__
.
This process is currently manual, but will likely be automated in the future.
yarn run package
, which will create function.zip
in the root of the repositoryFunctions
Upload
button under the Code
tab (Code Entry Type
should be set to Upload a .ZIP file
)Save
If you have a ~/.aws/configuration
setup, you can just run npm run deploy
.