Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mergify configuration #871

Merged
merged 15 commits into from Apr 3, 2019
21 changes: 21 additions & 0 deletions .mergify.yml
@@ -0,0 +1,21 @@
pull_request_rules:
- name: automatic merge on CI success and review
conditions:
- status-success=continuous-integration/travis-ci/pr
- "#changes-requested-reviews-by=0"
cipher1024 marked this conversation as resolved.
Show resolved Hide resolved
- base=master
- label=ready-to-merge
actions:
delete_head_branch: {}
merge:
method: squash
cipher1024 marked this conversation as resolved.
Show resolved Hide resolved
strict: smart
strict_method: merge
cipher1024 marked this conversation as resolved.
Show resolved Hide resolved
- name: remove outdated reviews
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this. Why would you remove the ready to merge label if there are two approving reviews and the build passed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's only when someone commits to the branch. Just to make sure we look at the whole set of changes before approving a PR

conditions:
- base=master
actions:
dismiss_reviews:
approved: True
label:
remove: ['ready-to-merge']
1 change: 1 addition & 0 deletions README.md
@@ -1,6 +1,7 @@
# mathlib

[![Build Status](https://travis-ci.org/leanprover-community/mathlib.svg?branch=master)](https://travis-ci.org/leanprover-community/mathlib)
[![Mergify Status][mergify-status]][mergify]

## Lean standard library

Expand Down