-
Notifications
You must be signed in to change notification settings - Fork 129
Automatic dismissal of reviews via push is misrepresented in UI #1157
Comments
@cirosantilli Please could the |
For me this happened after I clicked the "Update branch" button on Github to merge master into my branch. Very uncomfortable to look like I went in and dismissed a review of a senior colleague. |
This is especially annoying when a colleague leaves an approved review, maybe leaving a few minor comments that have small impact, or I just want to do a rebase to squash some commits. The new push will remove the approved review and I need to ask my colleague to leave a review again. Can this dismiss be configurable? |
@ruimcf As someone who rebases on a regular basis, I share your annoyance. See #783 (comment) |
@tiago always helpful as usual |
Does this option also removes all comments that other team members left on the PR ? The description of this feature says that the approval will be removed. There is no mention of what happens to the comments. Is it like PR will get reset/ like a fresh start, with every push. ? Is there a way to only remove the approval from the PR, retaining all the past comments? |
If you have that option checked, then any pushes will invalidate any existing code review approvals. Here's how it works
this is where things change depending on whether that option is checked or not IF the
IF the
That's because nothing happens to the comments, or anything else! Not sure how you even interpreted it that way.
no, only the approval gets reset (removed)
yup, just check off the |
Is there a way to keep the approvals on non-substantial commits? For example a rebase, triggered manually or automatically (on a merge to master from another PR)?
This is the description from Atlassian:
|
Yes, exactly this @blackliner - this would be extremely useful. The policy-bot app seems to have some support for ignoring "update merges", but I've not tried it out so can't comment on how reliable it is. Also, not ideal as you have to run that app yourself, so a built-in GitHub feature would be highly preferable. |
You could use the the dismiss_reviews action from Mergify to be e.g. not triggered on certain pull requests and only dismiss reviews on some PR. That means you could use e.g. a label |
I would love having the option of only dismissing the pull request if the changes where in the code and NOT in the code comments. Happens a lot where you update minor code comments (punctuation etc) and you need to re-ask for code approvals. |
I agree that this is an issue but it's not the functionality that's a problem. In my company, we would like pushes to require new reviews, however it is the wording of these messages that is the issue. When you respond to a PR code review and implement changes and push, you are not 'dismissing' anything, and the review is not 'stale'. You are taking on board valid comments and responding positively. The OP here expresses this well, though it seems a number of comments above are about tangential features, such as the ability to not 'dismiss' reviews for certain PRs or for merge commits. These are indeed nice features, but they don't address the original issue which seems to be a simple request for more friendly wording in this messaging. One suggestion:
|
I just noticed this myself and found this issue, thanks @ChrisUnityArto for reining it back in to the topic of focus. To add another use case: Sometimes I just remembered on my own to add something, and I push a new commit after someone already approved. So it's not really responding to the review, but it does render the review stale. I think it would be suitable to use a wording that's a bit more general, without making the committer sound dismissive:
|
Precisely.
Yes, I was about to say just the same. It cannot be assumed that the push is always a response to the review.
That sounds perfect to me. |
I noticed the "Update branch" button (when using the other branch protection setting |
If the new feature as described in #783 (comment) is enabled to automatically dismiss code reviews on protected branches when new code is pushed to that branch, whenever there is a push, the UI will say something like
However this is misleading because it makes it look like I went into the PR myself and pressed the
Dismiss review
button, when in fact all I did is agit push -f
. On one occasion I even came close to getting annoyed with a colleague because I mistakenly assumed they had manually dismissed my review without any explanation, when in fact they had just pushed a new version to respond to my feedback!This should be fixed.
The text was updated successfully, but these errors were encountered: