Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 2.44 KB

README.md

File metadata and controls

82 lines (51 loc) · 2.44 KB

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 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

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 [email protected] (https://github.com/phstc/probot-merge-when-green)