Radar · Rust · Archive · Week 22 · May 26 – Jun 1, 2025
Support triagebot assignment and shortcuts
Worth knowingtooling
- What changed
- The RFC repository now supports triagebot shortcuts such as
@rustbot authorand@rustbot ready, and similar shortcuts for assignment. - Production impact
- The source does not say.
- Try it
- Try using
@rustbot readyin a comment on an RFC issue to see the shortcut in action. - Source
- github.com/rust-lang/rfcs/pull/3822
Understand it, then run it
Run it now
// This program demonstrates the idea of triagebot shortcuts.
// The actual bot integration is not part of the Rust compiler,
// so we just print what a shortcut would do.
fn main() {
// Simulate a comment containing a shortcut.
let comment = "@rustbot author";
// In the real bot, this string would be parsed and an action taken.
// Here we just show the intended effect.
if comment.contains("@rustbot author") {
println!("Assigning PR to the author.");
} else if comment.contains("@rustbot ready") {
println!("Marking PR as ready for review.");
} else {
println!("No recognized shortcut.");
}
}
What it printed when we ran it on Rust 1.98.1 (edition 2024)
Assigning PR to the author.
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed