Skip to content

Commit 2f91772

Browse files
rd4398claude
andcommitted
Add Mergify configuration for automatic PR merging
Configure Mergify to auto-merge PRs after all CI checks pass (unit tests on Python 3.10-3.12, Ruff linting, coverage report) and at least one maintainer approval is received. Also adds conflict notification rule. Fixes #7 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Rohan Devasthale <rdevasth@redhat.com>
1 parent b79dbab commit 2f91772

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.mergify.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
pull_request_rules:
2+
- name: Automatic merge on approval
3+
conditions:
4+
- and:
5+
- "-draft"
6+
7+
# Unit tests
8+
- check-success=3.10 on ubuntu-latest
9+
- check-success=3.11 on ubuntu-latest
10+
- check-success=3.12 on ubuntu-latest
11+
12+
# Linting
13+
- check-success=Ruff 3.12 on ubuntu-latest
14+
15+
# Coverage
16+
- check-success=Coverage report
17+
18+
# At least 1 reviewer from maintainers
19+
- and:
20+
- "#approved-reviews-by>=1"
21+
22+
actions:
23+
merge:
24+
method: merge
25+
26+
- name: Ping author on conflicts
27+
conditions:
28+
- "conflict"
29+
- "-closed"
30+
actions:
31+
comment:
32+
message: |
33+
This pull request has merge conflicts that must be resolved before it can be merged.
34+
@{{ author }} please rebase your branch.

0 commit comments

Comments
 (0)