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: avoid labelling PRs with changes requested #3763

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dhiller
Copy link
Contributor

@dhiller dhiller commented Nov 15, 2024

What this PR does / why we need it:

GitHub search currently lacks being able to query for PRs that are missing a review by an approver, since the concept of approver vs. reviewer is enforced via OWNERS, which GitHub doesn't know about.

This change adds a condition to the search query that selects PRs to label with needs-approver-review in order to exclude PRs where changes have been requested.

Important

For this to work approvers need to explicitly request changes on the review though

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

/cc @jean-edouard @brianmcarey

FYI @vladikr @alicefr

GitHub search currently lacks being able to query for PRs that are
missing a review by an approver, since the concept of approver vs.
reviewer is introduced via OWNERS, which GitHub doesn't know about.

This change adds a condition to the search query that selects PRs to
label with `needs-approver-review` in order to exclude PRs where changes
have been requested.

Signed-off-by: Daniel Hiller <dhiller@redhat.com>
@kubevirt-bot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kubevirt-bot kubevirt-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Nov 15, 2024
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from dhiller. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants