-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Component/s: Pull Request - Merge / Checks
-
None
-
Severity 2 - Major
Issue Summary
Pull requests are losing their approvals after a rebase/merge commit, even when the “Keep approvals if there is no change to the diff in the pull request” option is enabled in branch restrictions. This occurs even though the diff remains unchanged after the rebase/merge commit.
Steps to Reproduce
- Enable branch restriction: Ensure “Keep approvals if there is no change to the diff in the pull request” is checked.
- Create a feature branch and open a pull request:
- Approve the PR.
- Rebase/merge the feature branch onto main (no changes to the diff).
- Push the rebased branch.
- Observe that the PR approvals are reset, even though the diff is unchanged.
Expected Results
Approvals should be retained if there are no changes to the diff, as per the branch restriction setting.
Actual Results
Approvals are reset even though the diff is unchanged. This disrupts review workflows and causes unnecessary re-approvals, even when the code under review has not changed.
Workaround
The approvers needs to reapprove the PR even though no diff changes.