/probot-merge-when-green

Automatically merge pull requests when all tests have passed

Primary LanguageTypeScriptISC LicenseISC

Build Status

Merge when green logo

Merge when green

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.

Installation instructions

Visit https://github.com/marketplace/merge-when-green

Configuration

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 only require the cicleci and travis-ci checks.

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

Travis CI and CicleCI

To work with Travis CI and CicleCI make sure GitHub Checks are enabled.

Running in development

# Install dependencies
yarn install

# Run typescript
yarn run build

# Run the bot
yarn start

Logo

👏 design by Glauber Rodger.

Contributing

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.

License

ISC © 2018 Pablo Cantero pablohstc@gmail.com (https://github.com/phstc/probot-merge-when-green)