mirror of
https://github.com/ceph/go-ceph
synced 2024-12-20 05:11:29 +00:00
7b57465142
!! Action Required !! The configuration uses the deprecated merge_method attribute of the queue action in one or more pull_request_rules. It must now be used under the queue_rules configuration. A brownout is planned on August 26th, 2024. This option will be removed on September 23rd, 2024. For more information: https://docs.mergify.com/configuration/file-format/#queue-rules !! Action Required !! The configuration uses the deprecated update_method attribute of the queue action in one or more pull_request_rules. It must now be used under the queue_rules configuration. A brownout is planned on August 26th, 2024. This option will be removed on September 23rd, 2024. For more information: https://docs.mergify.com/configuration/file-format/#queue-rules ref: https://docs.mergify.com/workflow/actions/queue/#parameters Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
---
|
|
# each test should be listed separately, do not use regular expressions:
|
|
# https://docs.mergify.io/conditions.html#validating-all-status-check
|
|
# Until mergify allows us to have default conditions, we will need to
|
|
# repeat this list in a few places.
|
|
queue_rules:
|
|
- name: default
|
|
conditions:
|
|
- check-success=check
|
|
- check-success=dpulls
|
|
- check-success=test-suite (octopus)
|
|
- check-success=test-suite (pacific)
|
|
- check-success=test-suite (quincy)
|
|
- check-success=test-suite (reef)
|
|
merge_method: rebase
|
|
update_method: rebase
|
|
|
|
pull_request_rules:
|
|
# Clearing approvals after content changes
|
|
- name: remove outdated approvals
|
|
conditions:
|
|
- base=master
|
|
actions:
|
|
dismiss_reviews:
|
|
approved: true
|
|
changes_requested: false
|
|
# Our auto merge rules
|
|
- name: automatic merge
|
|
conditions:
|
|
- label!=do-not-merge
|
|
- label!=extended-review
|
|
- base=master
|
|
- "#changes-requested-reviews-by=0"
|
|
- status-success=check
|
|
- status-success=dpulls
|
|
# See above
|
|
- status-success=test-suite (octopus)
|
|
- status-success=test-suite (pacific)
|
|
- status-success=test-suite (quincy)
|
|
- status-success=test-suite (reef)
|
|
- or:
|
|
- and:
|
|
- label=no-API
|
|
- "#approved-reviews-by>=1"
|
|
- and:
|
|
- label=API
|
|
- "#approved-reviews-by>=2"
|
|
- and:
|
|
- label=API
|
|
- "#approved-reviews-by>=1"
|
|
- "updated-at<10 days ago"
|
|
actions:
|
|
queue: {}
|
|
dismiss_reviews: {}
|
|
delete_head_branch: {}
|
|
# Conflict resolution prompt
|
|
- 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? 🙏"
|