Make r? work in our PRs
Is there a way that we can get r? to work without automatic reviewer assignment?
Since the documentation mentioned this:
Using r? ghost in the initial PR top-level comment when opening a PR will disable triagebot’s auto-assignment. ghost is GitHub’s placeholder account for deleted accounts. It is used here for convenience. This is typically used for rollups or experiments where you don’t want any assignments or noise.
I wonder if a hack like below would work?
[assign.adhoc_groups]
miri = ["@username1", "@username2", "@username3"]
# Triagebot will pick one person from here to assign
[assign.owners]
# match all file with "*"
"*" = ["@ghost"]
When looking up a name, triagebot will first look at ad-hoc groups, then rust-lang teams, and if it doesn’t match either of those it assumes it is a GitHub user.
assign.adhoc_groups is to choose a random person from the miri team by using r? miri, and r? @username1 will work without any configuration.
I would have hoped that just not having any owners would do it, but currently we can't use r? at all for some reason...
hmm, strange. I'd like to test if @rustbot claim would work here too.
Error: Parsing assign command in comment failed: ...' claim' | error: expected end of command at >| ' would wor'...
Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #t-infra on Zulip.
Uh oh... @rustbot claim
Nice @rustbot release-assignment
I think this is blocked on triagebot improvements:
- https://github.com/rust-lang/triagebot/issues/1805
- https://github.com/rust-lang/triagebot/issues/1806
For now apparently we can use @rustbot assign $name instead of r? and that should work in PRs as well.
This should now work with r? (https://github.com/rust-lang/triagebot/pull/1937).
Awesome, thanks a lot :-)
Successfully tested in https://github.com/rust-lang/miri/pull/4273 :)