GH-Automerge is a cron bot that uses CircleCi to automatically merge pull requests that pass CI.
- Merges the master into out-of-date pull request branches
- Merges pull requests when they're up-to-date and pass CI
Using GH-Automerge is easy.
Once setup, enable automerging pull requests by adding a Github
See the image above.
Setting up GH-Automerge for a repository in with these steps.
- Create a repository
npm install --save-dev gh-automerge
- Copy cron config from this
.circleci/config.ymltemplate into your repository
- Enable your repository in CircleCi
- Add a
GITHUB_TOKENenv var in CircleCi
- Add a
GITHUB_ORGenv var in CircleCi (the
GITHUB_ORGcan be a Github Organization or your Github User Name).
- Add the Github label
AUTOMERGEto your repository