Skip to content

Only consider PRs with certain labels to be in the reviewer workqueue #1952

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

Merged
merged 5 commits into from
Apr 23, 2025

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Apr 22, 2025

This PR adds logic for determining if a PR should be considered to be in the reviewer workqueue. The implemented rules are:

  • The PR has to be assigned to the given user (duh).
  • The PR has to be open.
  • The PR has to be non-draft.
  • The PR must not contain S-blocked, S-inactive or rollup labels.
  • The PR must contain the S-waiting-on-review label.
  • The PR must not be assigned to the PR author.

This implementation is based on discussion in https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/New.20triagebot.20assignment.20logic.20respecting.20PR.20limits/with/513565237.

Prerequisite for #1947.

Kobzol added 4 commits April 22, 2025 11:51
Because it needs to use custom logic for determining if a PR is truly assigned to someone and waiting for a review.
PRs that do not pass this check will not be considered for the workqueue.
@Kobzol Kobzol requested a review from Urgau April 22, 2025 10:23
@Kobzol Kobzol force-pushed the workqueue-pr-status branch from 6008fc1 to 3d96801 Compare April 23, 2025 07:42
@Urgau Urgau added this pull request to the merge queue Apr 23, 2025
Merged via the queue into rust-lang:master with commit 2d8acbe Apr 23, 2025
3 checks passed
@Kobzol Kobzol deleted the workqueue-pr-status branch April 23, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants