repoowners: add advisory_approvers OWNERS field - #783
Conversation
|
Skipping CI for Draft Pull Request. |
✅ Deploy Preview for k8s-prow ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: smg247 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Advisory approvers retain /approve power but are excluded from auto-assignment by LeafApprovers. This allows teams to list senior maintainers or leads who should be able to approve but shouldn't be automatically assigned as reviewers.
d3fc193 to
139ca02
Compare
Drop 'advisory-' prefix from test login names to make clear that list membership determines the advisory role, not naming convention. Remove reviewer/advisory overlap from TestApplyConfigWithAdvisoryApprovers since that case is already covered by TestAdvisoryApproverAlsoReviewer.
|
Shouldn't we update this: https://github.com/kubernetes-sigs/prow/blob/main/pkg/plugins/verify-owners/verify-owners.go#L400 as well? |
|
/retest |
|
|
||
| // AdvisoryApprovers returns the set of advisory approvers for the requested | ||
| // file. These users retain approval power but are excluded from auto-assignment. | ||
| func (o *RepoOwners) AdvisoryApprovers(path string) sets.Set[string] { |
There was a problem hiding this comment.
This method is never called anywhere
| if existing, ok := o.approvers[path][re]; ok { | ||
| o.approvers[path][re] = existing.Union(advisorySet) | ||
| } else { | ||
| o.approvers[path][re] = advisorySet.Union(sets.New[string]()) |
Advisory approvers retain /approve power but are excluded from auto-assignment by LeafApprovers. This allows teams to list senior maintainers or leads who should be able to approve but shouldn't be automatically assigned as reviewers.
Implements: #784