mirror of
https://github.com/ceph/go-ceph
synced 2024-12-19 04:45:37 +00:00
da34b0aec5
The "extended-review" label indicates that review is likely to take an extended period of time and for bots to not automatically take a PR. This avoid the need to preemptively mark a PR as changes needed or give a false impression with a "do-not-merge" tag, which has a subtle lack-of-quality implication. Signed-off-by: John Mulligan <jmulligan@redhat.com>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
---
|
|
pull_request_rules:
|
|
- name: remove outdated approvals
|
|
conditions:
|
|
- base=master
|
|
actions:
|
|
dismiss_reviews:
|
|
approved: true
|
|
changes_requested: false
|
|
- name: automatic merge
|
|
conditions:
|
|
- label!=do-not-merge
|
|
- label!=extended-review
|
|
- base=master
|
|
- "#approved-reviews-by>=2"
|
|
- "#changes-requested-reviews-by=0"
|
|
- status-success=check
|
|
# each test should be listed separately, do not use regular expressions:
|
|
# https://docs.mergify.io/conditions.html#validating-all-status-check
|
|
- status-success=test-suite (nautilus)
|
|
- status-success=test-suite (octopus)
|
|
actions:
|
|
merge:
|
|
method: rebase
|
|
rebase_fallback: merge
|
|
strict: smart
|
|
strict_method: rebase
|
|
dismiss_reviews: {}
|
|
delete_head_branch: {}
|
|
- name: ask to resolve conflict
|
|
conditions:
|
|
- conflict
|
|
actions:
|
|
comment:
|
|
message: "This pull request now has conflicts with the target branch.
|
|
Could you please resolve conflicts and force push the corrected
|
|
changes? 🙏"
|