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

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 <[email protected]>
@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. size/XS labels Nov 15, 2024
@dhiller dhiller marked this pull request as ready for review November 18, 2024 11:04
@kubevirt-bot kubevirt-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 18, 2024
@alicefr
Copy link
Member

alicefr commented Nov 18, 2024

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 18, 2024
@dhiller
Copy link
Contributor Author

dhiller commented Nov 19, 2024

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhiller

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 19, 2024
@kubevirt-bot kubevirt-bot merged commit 35ca2d0 into kubevirt:main Nov 19, 2024
5 checks passed
@kubevirt-bot
Copy link
Contributor

@dhiller: Updated the job-config configmap in namespace kubevirt-prow at cluster default using the following files:

  • key project-infra-periodics.yaml using file github/ci/prow-deploy/files/jobs/kubevirt/project-infra/project-infra-periodics.yaml

In response to this:

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

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants