mergify-engine
This is the engine running behind Mergify, a GitHub automation service for your pull requests.
This is how it works:
- You write rules describing how to match a pull request, and which actions need to be executed.
- The engine executes the action as soon as a pull request matches the conditions.
For example:
pull_request_rules:
- name: automatic merge when CI passes and 2 reviews
conditions:
- "#approved-reviews-by>=2"
- status-success=Travis CI - Pull Request
- base=master
actions:
merge:
method: merge
That rule automatically merges a pull request targetting the master branch once it has 2 approving reviews and the CI passes.
You can learn more by browing the engine documentation.