-
Notifications
You must be signed in to change notification settings - Fork 110
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
review dismissal question #893
Comments
To make sure I understand the problem, is this accurate?
|
Almost, that scenario is fine I think. The scenario where the edge case lives is:
|
Ah, thanks. I don't think there's a way to solve this with predicates, since those are about the state of the pull request, not the state of the approvals. I'm not sure there's a way to make this work for all cases: it seems like a fundamental conflict where there are arguments for either resolution:
Right now, I don't see a way to reconcile these positions, but maybe its something we could allow as an option either in the server or in the policy. |
Hello,
I think I'm currently hitting an edge case introduced in: #577
As described in the bottom of that PR description:
Most of our rules are "reviews with comments" type of policies where the github review could potentially contain a comment satisfying multiple policy rules. So it is a bit surprising to us to see that a new commit being pushed post approval makes the policy go back to pending after the re-evaluation, but doesn't actually dismiss the github review. This is where in the original implementation, I was thinking the "reason" field could clearly state which candidate is the cause of the review being dismissed.
Example policy:
Is there a way to have it still dismiss the github review commenting the reason with this set up? You mention using predicates, is there a way to refactor this policy to accomplish what we want with predicates?
The text was updated successfully, but these errors were encountered: