Skip to content

Commit

Permalink
ci: simplify Mergify configuration and automerge dependabot (#443)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
jd and mergify[bot] committed Feb 9, 2024
1 parent 9eb3868 commit 50065df
Showing 1 changed file with 15 additions and 28 deletions.
43 changes: 15 additions & 28 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
queue_rules:
- name: default
conditions: &CheckRuns
merge_method: squash
queue_conditions: &CheckRuns
- "check-success=test (3.8, py38)"
- "check-success=test (3.9, py39)"
- "check-success=test (3.10, py310)"
Expand All @@ -20,42 +21,28 @@ pull_request_rules:
⚠️ No release notes detected. Please make sure to use
[reno](https://docs.openstack.org/reno/latest/user/usage.html) to add
a changelog entry.
- name: automatic merge without changelog
conditions:
- and: *CheckRuns
- "#approved-reviews-by>=1"
- label=no-changelog
- or:
- author=jd
- author=dependabot
- "#approved-reviews-by>=1"
- or:
- label=no-changelog
- author=dependabot
actions:
queue:
name: default
method: squash

- name: automatic merge with changelog
conditions:
- and: *CheckRuns
- "#approved-reviews-by>=1"
- files~=^releasenotes/notes/
actions:
queue:
name: default
method: squash
- name: automatic merge for jd without changelog
conditions:
- author=jd
- and: *CheckRuns
- label=no-changelog
actions:
queue:
name: default
method: squash
- name: automatic merge for jd with changelog
conditions:
- author=jd
- and: *CheckRuns
- or:
- author=jd
- "#approved-reviews-by>=1"
- files~=^releasenotes/notes/
actions:
queue:
name: default
method: squash

- name: dismiss reviews
conditions: []
actions:
Expand Down

0 comments on commit 50065df

Please sign in to comment.