Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ pull_request_rules:
- **VSCode**: enable `Git: Always Sign Off` in Settings
- **PyCharm**: enable `Sign-off commit` in the Commit tool window

- name: Notify on merge conflicts
description: Comment when a PR has merge conflicts
- name: Add needs-rebase label and comment on merge conflicts
description: Label and comment when a PR has merge conflicts
conditions:
- conflict
- -closed
- -draft
actions:
label:
add:
- needs-rebase
comment:
message: |
Hi @{{author}}, this PR has merge conflicts that must be resolved before it can be merged. Please rebase your branch:
Expand All @@ -65,6 +68,17 @@ pull_request_rules:
git push --force-with-lease
```

- name: Remove needs-rebase label when conflict is resolved
description: Remove needs-rebase label when PR no longer has conflicts
conditions:
- -conflict
- -closed
Comment thread
CatherineSue marked this conversation as resolved.
- label = needs-rebase
actions:
label:
remove:
- needs-rebase

Comment thread
coderabbitai[bot] marked this conversation as resolved.
- name: Remind on stale PRs
description: Comment and label PRs inactive for 14 days
conditions:
Expand Down
Loading