Skip to content

Commit

Permalink
ci: simplify Mergify configuration and automerge dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
jd committed Feb 9, 2024
1 parent 2f624ba commit ee7358c
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 ee7358c

Please sign in to comment.