Tired of waiting for long-running tests before merging pull requests?
Label your pull requests with merge when green
then let Merge when green to automatically merge your pull requests once all tests have passed.
Visit https://github.com/marketplace/merge-when-green
Merge when green supports both Checks and Statuses. You can configure which ones must pass for the PR to be considered
"green" in order for it to be merged. Create a .github/merge-when-green.yml
file to list the require checks/statuses:
requiredChecks:
- circleci
- travis-ci
requiredStatuses:
- jenkins
By default, Merge when green will wait for branch protection
to pass and also require circleci
and travis-ci
before attempting to merge.
Merge when green also allows you to ensure that all requested reviews have approved the pull request. Just add the
following to your .github/merge-when-green.yml
:
requireApprovalFromRequestedReviewers: true
You can change method that Merge when green uses to merge pull requests with the mergeMethod
option. Valid values are
merge
, squash
and rebase
, the default is merge
.
mergeMethod: squash
To work with Travis CI and CicleCI make sure GitHub Checks are enabled.
- https://blog.travis-ci.com/2018-05-07-announcing-support-for-github-checks-api-on-travis-ci-com
- https://circleci.com/docs/2.0/enable-checks/
# Install dependencies
yarn install
# Run typescript
yarn run build
# Run the bot
yarn start
👏 design by Glauber Rodger.
If you have suggestions for how Merge when green 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.
ISC © 2018 Pablo Cantero [email protected] (https://github.com/phstc/probot-merge-when-green)