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

ci(mergify): upgrade conf to use MP #6144

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 42 additions & 25 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,37 @@ shared:
{{ body }}
allow_inplace_checks: true
merge_method: squash
CheckRuns: &CheckRuns
- check-success=lint
- check-success=test
- or:
- label = ignore-broken-links
- check-success = test-broken-links
- or:
- check-success=Cloudflare Pages
# fork can't have the preview build
- "-head-repo-full-name~=^Mergifyio/"

queue_rules:
- name: hotfix
<<: *DefaultQueueOptions
queue_conditions:
- or:
merge_protections:
- name: 🤖 Continuous Integration
if:
- label != hotfix
success_conditions:
- and: &CheckRuns
- check-success = lint
- check-success = test
- or:
- label = ignore-broken-links
- check-success = test-broken-links
- or:
- check-success=Cloudflare Pages
# fork can't have the preview build
- "-head-repo-full-name~=^Mergifyio/"

- name: 👀 Review Requirements
if:
- label != hotfix
success_conditions:
- or: &DefaultReviewCond
- "#approved-reviews-by >= 2"
- author = dependabot[bot]
- author = mergify-ci-bot

- name: 🧑‍🚒 Hotfix Review Requirements
if:
- label = hotfix
success_conditions:
- or: &HotfixReviewCond
# Author is engineering manager, we allow with one review
- and:
- author=@eng-mgr
Expand All @@ -36,23 +51,25 @@ queue_rules:
- and:
- title~=^(revert|fix)
- "#approved-reviews-by>=1"
- label=hotfix
- "#changes-requested-reviews-by=0"
- "#review-requested=0"

- or: *DefaultReviewCond

# yamllint disable-line rule:line-length
- body ~= (Fix|Related).* (INC-\d+|https:\/\/github\.com\/Mergifyio\/docs\/security\/dependabot\/\d+)

queue_rules:
- name: hotfix
<<: *DefaultQueueOptions
queue_conditions:
- label = hotfix
merge_conditions:
- and: *CheckRuns

- name: default
<<: *DefaultQueueOptions
queue_conditions:
- and: *CheckRuns
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"
- "#review-threads-unresolved=0"
- "#review-requested=0"
- label!=manual merge
merge_conditions:
- and: *CheckRuns
- schedule=Mon-Fri 09:00-17:30[Europe/Paris]

- name: lowprio
Expand All @@ -72,7 +89,6 @@ queue_rules:
- "title~=^chore: bump"
- author=dependabot[bot]
merge_conditions:
- and: *CheckRuns
- schedule=Mon-Fri 09:00-17:00[Europe/Paris]
batch_size: 7
batch_max_wait_time: 5min
Expand All @@ -82,6 +98,7 @@ queue_rules:
pull_request_rules:
- name: automatic merge
conditions:
- label != manual merge
- base=main
actions:
queue:
Expand Down
Loading