-
-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mergify: configuration update (#831)
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
pull_request_rules: | ||
- name: assign PR to autor | ||
conditions: [] | ||
actions: | ||
assign: | ||
users: | ||
- "@{{ author }}" | ||
- name: remove outdated reviews | ||
conditions: [] | ||
actions: | ||
dismiss_reviews: {} | ||
- name: automatic merge for master when CI passes and 1 review (excluding reviewdog) | ||
conditions: | ||
- "#approved-reviews-by>=1" | ||
- approved-reviews-by!=github-actions | ||
- status-success=codestyle (ubuntu-18.04, 3.6) | ||
- status-success=dl-cpu-core (ubuntu-18.04, 3.6, minimal) | ||
- status-success=dl-cpu-core (ubuntu-18.04, 3.6, latest) | ||
- status-success=dl-cpu-cv (ubuntu-18.04, 3.6, minimal) | ||
- status-success=dl-cpu-cv (ubuntu-18.04, 3.6, latest) | ||
- status-success=dl-cpu-nlp (ubuntu-18.04, 3.6, minimal) | ||
- status-success=dl-cpu-nlp (ubuntu-18.04, 3.6, latest) | ||
- label!=WIP | ||
actions: | ||
merge: | ||
method: squash | ||
- name: automatic merge for master when CI passes and 2 review (including reviewdog) | ||
conditions: | ||
- "#approved-reviews-by>=2" | ||
- approved-reviews-by=github-actions | ||
- status-success=codestyle (ubuntu-18.04, 3.6) | ||
- status-success=dl-cpu-core (ubuntu-18.04, 3.6, minimal) | ||
- status-success=dl-cpu-core (ubuntu-18.04, 3.6, latest) | ||
- status-success=dl-cpu-cv (ubuntu-18.04, 3.6, minimal) | ||
- status-success=dl-cpu-cv (ubuntu-18.04, 3.6, latest) | ||
- status-success=dl-cpu-nlp (ubuntu-18.04, 3.6, minimal) | ||
- status-success=dl-cpu-nlp (ubuntu-18.04, 3.6, latest) | ||
- label!=WIP | ||
actions: | ||
merge: | ||
method: squash | ||
- name: delete head branch after merge | ||
conditions: | ||
- merged | ||
actions: | ||
delete_head_branch: {} | ||
- name: ask to resolve conflict | ||
conditions: | ||
- conflict | ||
actions: | ||
comment: | ||
message: "This pull request is now in conflicts. @{{ author }}, could you fix it? 🙏" |