Skip to content

Commit

Permalink
Fix mergify rules
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Doherty <[email protected]>
  • Loading branch information
chrisdoherty4 committed Nov 17, 2022
1 parent 0456d7c commit 095e73a
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
# The `check-success` should be specifying the final job in the CI workflow assuming it depends
# directly or indirectly on all other jobs passing.

shared:
# Rules applicable to both queueing and merge requests.
compulsory: &compulsory

# Ensure the minimal CI checks have passed.
- check-success=DCO
- check-success=Package

# Ensure we're targetting the default branch.
- base=main

# Ensure we have adequete reviews.
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"

queue_rules:
- name: default
conditions:
- check-success=DCO
- check-success=package
- and: *compulsory

pull_request_rules:
- name: Automatic merge on approval
- name: Automatic merge
conditions:
- base=main
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- check-success=DCO
- check-success=package
- and: *compulsory

# Ensure the review is opted in using labels.
- label!=do-not-merge
- label=ready-to-merge

actions:
queue:
method: merge
Expand Down

0 comments on commit 095e73a

Please sign in to comment.