-
Notifications
You must be signed in to change notification settings - Fork 97
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
cherrypickapproved: Add option to approve PRs without lgtm or approved labels #220
cherrypickapproved: Add option to approve PRs without lgtm or approved labels #220
Conversation
✅ Deploy Preview for k8s-prow ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…d labels Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
886ef1f
to
f5ae2b6
Compare
/assign @cjwagner |
/approve |
@xmudrii, I have a few questions (please correct me if I'm misunderstanding this plugin): The With the new config options (
I'm not sure how easy/ hard this is to implement, but an alternative could be to add additional check if the person approving the cherry-pick is listed both in |
@Priyankasaggu11929 Thank you for the review! I'll do my best to answer all the concerns.
Yes, that's correct.
Yes, that's correct and I have done it intentionally this way. I've been long thinking if there should be some check of the OWNERS status, but then I realized that it might not fit different situations. For example, let's say that I'm responsible for approving all cherry-picks, including those cherry-picks for which I'm not code/component OWNER. I could still approve the cherry-pick from the "administrative side" (e.g. it satisfies the cherry-pick criteria), but leave it to the code OWNER to review the PR and approve/lgtm it later. Because of that, even if we would implement check of the OWNERS status, I would still make it optional. This combination as-is (both options set to Additionally, it's important to clarify two things. This doesn't have any impact to the Kubernetes projects, as we'll not use this option. This change is being made for other Prow users that have similar processes in place as Kubernetes, but yet a little bit different, making these options ( The second thing is even if I'm not a code OWNER, but cherry-pick approve the PR, it's only going to affect the Finally, I'm not really sure how we could implement this case, it potentially requires a lot of work as I'm not sure if that part of the code is reusable from the approvers plugin or we need to reimplement it from scratch. There are many different cases as well, including handling OWNERS_ALIASES, teams, etc... |
Yes. Though, to me at-least, it feels that the original design of the
Yea, it would be somehow partly integrating Is there an example to see how Prow currently reacts, when both Unblocking the merge, since the config options are not to be used by Kubernetes project repos and doesn't change default behavior. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cjwagner, Priyankasaggu11929, saschagrunert, xmudrii The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
In the first two examples, I resorted to applying the label manually. In the last example, I tried approving the PR again which also did the trick.
Can I remove the hold from this PR or should I leave it for @MadhavJivrajani to take a look? |
Thanks for the example links, @xmudrii. yea, good to unhold from my end. |
Thank you, @Priyankasaggu11929! |
/retest |
This PR extends the
cherrypickapproved
plugin with two new configuration options:allow_missing_approved_label
andallow_missing_lgtm_label
. Those two fields are bools defaulted tofalse
. If the option is set totrue
, the respective label will not be needed to successfully cherry-pick approve the PR.This is very useful for projects where approvers are also cherry-pick-approvers. At the moment, this plugin is not much useful to those projects, because you either have to approve the PR two times or manually remove the cherry-pick-not-approved label. This change should make the user experience a bit better for this use case.
/assign @saschagrunert @cpanato @puerco
cc @kubernetes-sigs/release-engineering