-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Approvals are dismissed when new commits are pushed #27114
Comments
The PR #9532 to mark PR reviews as stale at push and allow to dismiss stale approvals was merged in 2020. So I believe the term "dismiss" in the branch protection setting does not actually refer to the real "dismiss review" functionality because that didn't exist yet. |
Yes, in my opinion it would have been better to update the UI description (e.g. "Ignore stale approvals") of this branch protection setting to match the implemented behavior. Instead of updating the implementation to match the description. |
Dismissing the stale approval reviews also has the following unwanted side effects:
|
Agreeing with @jpraet ; simply ignoring a stale approval suffices. Dismissing a review completely when new commits are added is not a behavior you wish to make automatic. So i am pro updating the UI description to "Ignore stale approvals" and reverting the implemented behaviour to update the stale column and ignore the approval when counting official approvals (not updating the dismiss column). |
Would a PR that reverts to the old behavior and clarifies the UI description be accepted? Or would a PR that adds a new "Ignore stale approvals" branch protection setting be preferred? That way, both options are supported. |
I would like the second option. |
Fixes #27114. * In Gitea 1.12 (#9532), a "dismiss stale approvals" branch protection setting was introduced, for ignoring stale reviews when verifying the approval count of a pull request. * In Gitea 1.14 (#12674), the "dismiss review" feature was added. * This caused confusion with users (#25858), as "dismiss" now means 2 different things. * In Gitea 1.20 (#25882), the behavior of the "dismiss stale approvals" branch protection was modified to actually dismiss the stale review. For some users this new behavior of dismissing the stale reviews is not desirable. So this PR reintroduces the old behavior as a new "ignore stale approvals" branch protection setting. --------- Co-authored-by: delvh <dev.lh@web.de>
…28498) Fixes go-gitea#27114. * In Gitea 1.12 (go-gitea#9532), a "dismiss stale approvals" branch protection setting was introduced, for ignoring stale reviews when verifying the approval count of a pull request. * In Gitea 1.14 (go-gitea#12674), the "dismiss review" feature was added. * This caused confusion with users (go-gitea#25858), as "dismiss" now means 2 different things. * In Gitea 1.20 (go-gitea#25882), the behavior of the "dismiss stale approvals" branch protection was modified to actually dismiss the stale review. For some users this new behavior of dismissing the stale reviews is not desirable. So this PR reintroduces the old behavior as a new "ignore stale approvals" branch protection setting. --------- Co-authored-by: delvh <dev.lh@web.de>
…28498) Fixes go-gitea#27114. * In Gitea 1.12 (go-gitea#9532), a "dismiss stale approvals" branch protection setting was introduced, for ignoring stale reviews when verifying the approval count of a pull request. * In Gitea 1.14 (go-gitea#12674), the "dismiss review" feature was added. * This caused confusion with users (go-gitea#25858), as "dismiss" now means 2 different things. * In Gitea 1.20 (go-gitea#25882), the behavior of the "dismiss stale approvals" branch protection was modified to actually dismiss the stale review. For some users this new behavior of dismissing the stale reviews is not desirable. So this PR reintroduces the old behavior as a new "ignore stale approvals" branch protection setting. --------- Co-authored-by: delvh <dev.lh@web.de>
Automatically locked because of our CONTRIBUTING guidelines |
Description
With #25882, if
is set on the branch protection, approvals get dismissed when new commits are added.
I am not sure if it was the actual intent of this branch protection to actively "Dismiss" the review.
Previously, this option already caused stale approvals to be ignored towards the PR approval count, which seems sufficient?
gitea/models/issues/pull.go
Lines 837 to 839 in a50d9af
Now, the review is actually dismissed, resulting in an entry in the PR history, and an (empty) email notification.
This dismissed review is also not shown in the "Reviewers" view of the PR, whereas stale reviews are.
In my opinion actually dismissing the review because new commits are added is a bit excessive?
Gitea Version
1.20.4
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
docker
Database
None
The text was updated successfully, but these errors were encountered: