Mergify is a pull request automation service, triggering actions when a pull request matches defined criteria.
For example, in a few lines of YAML, you can write a rule that automatically merges a pull request if:
- [X] it has been approved
- [X] the test suite passes
Take a look at our examples.
Mergify executes actions for you, freeing you from the burden of managing your pull requests.
Mergify works by applying rules on your pull requests. You can for example, automatically merge a pull request with:
pull_request_rules: - name: automatic merge when CI passes and 2 reviews conditions: - "#approved-reviews-by>=2" - status-success=Travis CI - Pull Request - label!=work-in-progress actions: merge: method: merge priority: high
Mergify will press the merge button for you automatically.
Mergify also offers a merge queue where you can set priorities.
Mergify also provides tons of actions, such as:
- Adding/removing labels
- Requesting reviews
- Posting comments
- Copying to another branch
- Deleting a branch
All of those can be used to automate completely your GitHub workflow.