Proposal: Optimize "Require approval of the most recent reviewable push" for Directly Committed Approver Suggestions #78039
Unanswered
dillonstreator
asked this question in
Pull Requests
Replies: 2 comments
-
|
This seems entirely sane and was the behavior I expected. Our enterprise and all 12 organizations need this. Re-approvals on already-approved suggestions is a huge time suck. The alternative is to allow unreviewed code into a protected branch. Can we get another option? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
+1000 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
Problem:
The current behavior of "Require pull request reviews before merging," specifically the "Require approval of the most recent reviewable push" option, may lead to unnecessary re-review requests when the pull request owner (A) directly commits the suggested changes made by an authorized reviewer (B). This situation occurs when B approves the PR along with a suggested change, and A incorporates that change directly without introducing any additional modifications.
Scenario:
Consider a team scenario with members A and B. Member A opens a pull request, and member B approves it with a suggested change. If A directly applies that suggested change without introducing any further modifications, the system should recognize that B has effectively reviewed their own suggested change. In this case, triggering a re-review requirement is redundant.
Proposed Solution:
To address this, I suggest refining the "Require approval of the most recent reviewable push" functionality to exempt cases where the PR owner directly commits the suggested changes made by an authorized reviewer. In such instances, where the only change made is the suggested modification already approved by the reviewer, the system should intelligently recognize this and avoid triggering a re-review request.
Benefits:
Efficiency: Eliminates unnecessary re-review requests when the PR owner directly applies approved suggestions without additional changes.
Maintains Security: Ensures that the pull request review process remains secure and does not allow unapproved changes to bypass approval.
Implementation Details:
Check for Direct Commit of Approved Suggestions:
Documentation Update:
Conclusion:
This proposal aims to enhance the pull request review process by making it more nuanced and efficient. By optimizing the "Require approval of the most recent reviewable push" feature to recognize scenarios where the PR owner directly commits approved suggestions, we can streamline the process without compromising the integrity of the review workflow.
Beta Was this translation helpful? Give feedback.
All reactions