Skip to content
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

needs-approver-review: enable management by GH team #3770

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions github/ci/prow-deploy/kustom/base/configs/current/orgs/orgs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,26 @@ orgs:
- vasiliy-ul
- rthallisey
- aburdenthehand
needs-approver-review-label:
description: "Users who can manage needs-approver-review label to any PR inside the KubeVirt org"
Comment on lines +855 to +856
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to add the needs-approver-review-label label to the kubevirtkubevirt-label group below instead of creating a new one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, since this group can change the label in every repo, whereas the other group can only change labels inside k/kubevirt.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for it though?
Why wouldn't members be able to add the good-first-issue to every repo?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In any case, it shouldn't block this PR, just an idea.
/lgtm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for it though? Why wouldn't members be able to add the good-first-issue to every repo?

Because at the time there was opinions about how and when to apply the labels good-first-issue and help-wanted and who could apply them.

I.e. for project-infra it works through the prow help plugin - anyone can just write /help-wanted or /good-first-issue and the labels will get applied. In contrast to this in k/kubevirt the consensus was that only a dedicated group of people should apply labels (that's also the reason why there's two good-first-issue labels (https://github.com/kubevirt/project-infra/blob/main/docs/labels.md#good%20first%20issue).

As much as I had wanted to align people over just using the prow help plugin and not having to maintain an extra configuration for labels, we didn't agree on this - and I respect that decision.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example issue for k/project-infra: #3768 (comment)

(reaction by plugin can be seen in follow up)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot one thing: the help plugin has the drawback that everyone who comments on a PR can apply the label - I think the label should only get applied if an org member does comment, however I don't know that for sure and would need to check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just checked - the plugin reacts to any comment, so in essence anyone with a GitHub account can trigger help, however I think the cost of unjustified application of a label is neglectible to the cost of having to maintain the configuration, but that's just my opinion.

members:
- 0xFelix
- aburdenthehand
- acardace
- alicefr
- davidvossel
- dhiller
- EdDev
- enp0s3
- fabiand
- fossedihelm
- iholder101
- jean-edouard
- lyarwood
- mhenriks
- stu-gott
- vladikr
- xpivarc
kubevirtkubevirt-label:
description: "Users who can apply restricted labels to any issue inside the kubevirt/kubevirt repo"
members:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,8 @@ label:
'kubevirt':
- allowed_users:
- kubevirt-bot
allowed_teams:
- needs-approver-review-label
dhiller marked this conversation as resolved.
Show resolved Hide resolved
label: needs-approver-review
- allowed_teams:
- kubevirtorg-label
Expand Down