Skip to content
Closed
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
7 changes: 7 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
pull_request_rules:
- name: rebase-pr-older-than-40-commits
conditions:
- base = main
- "#commits-behind >= 40"
actions:
rebase:
Comment on lines +2 to +7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This rule will automatically rebase and force-push to pull request branches. While keeping branches up-to-date is beneficial, the automatic force-push can be very disruptive for developers, especially if multiple people are collaborating on the same feature branch.

A force-push rewrites the branch's history, which can cause the following problems for collaborators:

  • Their local branch will diverge from the remote branch.
  • They will need to manually reset their local branch (e.g., with git fetch origin; git reset --hard origin/<branch-name>) to continue working, potentially losing local-only commits if they are not careful.

This can lead to confusion, lost work, and a frustrating developer experience. Please consider the collaboration patterns in this repository. If branches are frequently shared, this automatic action might cause more harm than good.


- name: label-documentation
description: Automatically apply documentation label
conditions:
Expand Down
Loading