Skip to content

Commit

Permalink
ci(mergify): clarify queue_conditions and merge_conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jun 14, 2024
1 parent 5856dc0 commit 7247bd9
Showing 1 changed file with 13 additions and 33 deletions.
46 changes: 13 additions & 33 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ queue_rules:
{{ body | trim }}
queue_conditions:
- base=master
- or:
- check-pending=integration-test-result
- check-success=integration-test-result
- label=bypass:integration
- or:
- and: # breakage succeeds like we thought
- check-success=breakage
- -label=proto:expect-breakage
- and: # breakage fails like we thought
- check-failure=breakage
- label=proto:expect-breakage
merge_conditions:
- base=master
# Require integration tests before merging only
- or:
Expand All @@ -20,17 +33,6 @@ pull_request_rules:
- or:
- '#commits-behind=0'
- label=bypass:linear-history
- or:
- check-pending=integration-test-result
- check-success=integration-test-result
- label=bypass:integration
- or:
- and: # breakage succeeds like we thought
- check-success=breakage
- -label=proto:expect-breakage
- and: # breakage fails like we thought
- check-failure=breakage
- label=proto:expect-breakage
actions:
queue:
name: main
Expand All @@ -39,17 +41,6 @@ pull_request_rules:
conditions:
- base=master
- label=automerge:rebase
- or:
- check-pending=integration-test-result
- check-success=integration-test-result
- label=bypass:integration
- or:
- and: # breakage succeeds like we thought
- check-success=breakage
- -label=proto:expect-breakage
- and: # breakage fails like we thought
- check-failure=breakage
- label=proto:expect-breakage
actions:
queue:
name: main
Expand All @@ -59,17 +50,6 @@ pull_request_rules:
conditions:
- base=master
- label=automerge:squash
- or:
- check-pending=integration-test-result
- check-success=integration-test-result
- label=bypass:integration
- or:
- and: # breakage succeeds like we thought
- check-success=breakage
- -label=proto:expect-breakage
- and: # breakage fails like we thought
- check-failure=breakage
- label=proto:expect-breakage
actions:
queue:
name: main
Expand Down

0 comments on commit 7247bd9

Please sign in to comment.