Skip to content

Commit

Permalink
Mergify: configuration update (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
bagxi authored Jun 2, 2020
1 parent 24642de commit d1d8f4d
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .mergify.yml
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? 🙏"

0 comments on commit d1d8f4d

Please sign in to comment.