Skip to content

Mirror rust-lang/rust review labels, enable triagebot shortcuts and review-changes-since functionality#6773

Merged
ytmimi merged 4 commits into
rust-lang:mainfrom
jieyouxu:review
Jan 20, 2026
Merged

Mirror rust-lang/rust review labels, enable triagebot shortcuts and review-changes-since functionality#6773
ytmimi merged 4 commits into
rust-lang:mainfrom
jieyouxu:review

Conversation

@jieyouxu

Copy link
Copy Markdown
Member

Review labels

Currently, rustfmt seems to use a set of manually maintained (flipped) labels:

This is inconsistent with what rust-lang/rust uses, and the PR states tends to also mismatch the status of the label at the moment. This PR proposes that we switch over to the same set of binary labels { S-waiting-on-author Status: awaiting some action (such as code changes or more information) from the author. , S-waiting-on-review Status: awaiting review from the assignee but also interested parties. , S-blocked Status: blocked on rustc, an RFC, impl work, etc.; please also add a block reason label } that rust-lang/rust uses, and enable triagebot's automation to help to automatically flip the labels (e.g. flipping to S-waiting-on-author when reviewer pressed Request Changes).

I don't think the pr-not-reviewed vs pr-follow-up-review-pending distinction makes a lot of difference in practice. However, we can still keep the pr-follow-up-review-pending label, since that is previously manually applied anyway.

See also shortcuts below.

shortcuts

See https://forge.rust-lang.org/triagebot/shortcuts.html:

Shortcuts are simple commands for performing common tasks.

Basically, convenience method for toggling between the PR states { S-waiting-on-author Status: awaiting some action (such as code changes or more information) from the author. , S-waiting-on-review Status: awaiting review from the assignee but also interested parties. , S-blocked Status: blocked on rustc, an RFC, impl work, etc.; please also add a block reason label } even when the user does not have write access to this repo (so cannot use label UI):

@rustbot ready   # S-{waiting-on-author,blocked} -> S-waiting-on-review
@rustbot author  # S-{waiting-on-review,blocked} -> S-waiting-on-author
@rustbot blocked # S-waiting-on-{author,review}  -> S-blocked

review-changes-since

See https://forge.rust-lang.org/triagebot/review-changes-since.html:

This feature will automatically adjust the body of a GitHub review to include a link to view the changes that happened since the review.

I.e. a rendered page of range-diff so that the reviewer don't need to do it locally.

@jieyouxu jieyouxu added the A-meta Area: meta (e.g. triagebot configuration) label Jan 20, 2026

@ytmimi ytmimi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think adding more automation and keeping things consistent with r-l/rust is a good idea

And configure triagebot review status label flipping.

Instead of
`pr-{not-reviewed,waiting-on-author,follow-up-review-pending}`, for two
reasons:

1. Consistency with `rust-lang/rust`. The `S-*` status labels are the
   ones that `rust-lang/rust` uses.
2. I don't think the `not-reviewed` vs `follow-up-review-pending`
   distinction makes a lot of difference in practice. However, we can
   still keep the `pr-follow-up-review-pending` label, since that is
   previously manually applied anyway.
Basically, a web-rendered version of `range-diff` to make review after
force-pushes easier.
This allows PR reviewers and authors to easily use:

```
@rustbot ready   # S-{waiting-on-author,blocked} -> S-waiting-on-review
@rustbot author  # S-{waiting-on-review,blocked} -> S-waiting-on-author
@rustbot blocked # S-waiting-on-{author,review}  -> S-blocked
```
@ytmimi ytmimi merged commit 88ec076 into rust-lang:main Jan 20, 2026
26 checks passed
@jieyouxu jieyouxu deleted the review branch January 20, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-meta Area: meta (e.g. triagebot configuration) pr-not-reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants