A GitHub App built with Probot to re-approve dismissed Pull Request reviews, given the code changes remain the same after the last approval. All infrastructure orchestration is done with Amazon Web Services.
It compares changes through a calculated through a hash, which if stored in a AWS DynamoDB Hash Table.
npm install
npm test
A DYNAMODB_TABLE
value needs to be set in the env (or put into the .env
file).
# Install dependencies
npm install
# Run with hot reload
npm run dev
# Compile and run
npm run build
npm run start
npm run dev
Open http://localhost:3000/probot
and follow instructions to install it to some repository or organisation.
npm run package
You need to set the AppId
variable as a CloudFormation stack parameter. It should be generated and stored in your local .env
file.
aws cloudformation package \
--template-file deploy/app.yaml \
--s3-bucket cf-templates-106qhq40bhwiu-eu-west-1 \
--output-template-file output.yaml
aws cloudformation deploy \
--stack-name github-rebase-review-bot \
--template-file output.yaml \
--parameter-overrides AppId=12345 \
--capabilities CAPABILITY_IAM
WEBHOOK_SECRET
and PRIVATE_KEY
can be retrieved from your local .env
file. They need to be stored in the AWS SecretManager objects that have been created in the Stack.
PRIVATE_KEY
should be a pem file and encoded as base64:
echo "$PRIVATE_KEY"
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
export SECRET=$(echo "$PRIVATE_KEY" | base64)
After the CloudFormation stack's been deployed, the ApiGateway's URL (something like https://swmwkyi6rf.execute-api.eu-west-1.amazonaws.com
) needs to be configured as Webhook URL
in the "General" pane of the GitHub App.
You can inspect the lambda logs or the activity log in the GitHub App's "Advanced" tab.
If you have suggestions for how github-rebase-review-bot could be improved, or want to report a bug, open an issue! We'd love all and any contributions.
For more, check out the Contributing Guide.
Apache 2.0 © 2020 moovel Group GmbH