Commit 365a92c
committed
chore(mergify): add automatic rebase rule for approved PRs
Add a new Mergify rule to automatically rebase approved PRs when the
base branch (main) is updated. This keeps PRs current with the latest
code and ensures tests run on the actual merge result.
The rebase happens automatically when:
- PR is not a draft
- PR has no merge conflicts
- PR is still open
- PR has at least 1 approval from maintainers
Benefits:
- Prevents stale PRs that fall behind main
- Catches integration issues early
- Ensures tests run on latest codebase
- Maintains cleaner linear commit history
The rebase rule is placed before the auto-merge rule to ensure PRs
are up-to-date before automatic merging occurs.
Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>1 parent a8c621d commit 365a92c
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
2 | 11 | | |
3 | 12 | | |
4 | 13 | | |
| |||
0 commit comments