Check that reviewers actually exist
When someone does @bors r=abc, the bot should check if abc is a valid (GitHub) username (or a GH team?). To avoid situations where the name of the reviewer is mispelled, which happens quite often, and is problematic for https://thanks.rust-lang.org/.
It is common to specify names separated by commas, so bors should understand that and check all usernames separately.
We might also include some kind of opt-out, where you really want to use r= for a non-existent GH account.
We might also include some kind of opt-out, where you really want to use
r=for a non-existent GH account.
what are the use cases for this? Imo we should document them 👍
Also, should we mark this as good-first-issue?
Yeah, this shouldn't be hard, marked it as such :)
The use-case is mostly using r=
Ok, so it seems we could have two PRs to solve this issue:
- The first one, just checks for invalid
@bors r=abc - The second one, prints a list of names that have a close distance
Error: This repository is not enabled to use triagebot.
Add a triagebot.toml in the root of the default branch to enable it.
Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #t-infra on Zulip.
if anyone is not working on it can i work on it ? cc @Kobzol
Sure :)