-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Allow /approval variant for Prow approve plugin. #18141
Conversation
It's common within internal Google code review to see "LGTM, Approval" as a response to approved code reviews, so I've been somewhat conditioned to use `/approval`, only to discover later that it didn't work. This adds the ability for Prow to accept both `/approve` and `/approval` as valid commands. This also makes it easy to add other variants (e.g. `/approved`?) later if we need to.
Welcome @wlynch! |
Hi @wlynch. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wlynch The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cool with me |
Why not just leave an approving github review so you don't have to use /foo commands at all here? An example of my doing this: #18189 (review) I am not sure the costs associated with this sort of change are worth it:
But the most fundamental thing here is you should just leave an approving github review to approve, which you cannot get wrong. To me the current behavior is clear:
The two config knobs for this are: test-infra/prow/plugins/config.go Lines 268 to 271 in 49b063e
test-infra/prow/plugins/config.go Lines 310 to 312 in 49b063e
|
The only counterpoint I have is that the GitHub code review Approve button only shows up in the and not under any replies in the base pull request view (this is a consequence of this PRs being represented as an Issue): though perhaps this is more a feature request for GitHub to implement. :)
That's fair. I'll close this out. Thanks! |
It's common within internal Google code review to see "LGTM, Approval"
as a response to approved code reviews, so I've been somewhat conditioned to use
/approval
with Prow, only to discover later that it didn't work.This adds the ability for Prow to accept both
/approve
and/approval
as valid commands.
This also makes it easy to add other variants (e.g.
/approved
?) laterif we need to.