Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Check that reviewers actually exist #191

Open
Kobzol opened this issue Jan 1, 2025 · 6 comments · May be fixed by #200
Open

Check that reviewers actually exist #191

Kobzol opened this issue Jan 1, 2025 · 6 comments · May be fixed by #200
Labels
good first issue Good for newcomers

Comments

@Kobzol
Copy link
Contributor

Kobzol commented Jan 1, 2025

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.

@marcoieni
Copy link
Member

marcoieni commented Jan 16, 2025

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?

@Kobzol Kobzol added the good first issue Good for newcomers label Jan 16, 2025
@Kobzol
Copy link
Contributor Author

Kobzol commented Jan 16, 2025

Yeah, this shouldn't be hard, marked it as such :)

The use-case is mostly using r=, where the team might or might not be an actual GitHub team, and reviewers might not be willing to lookup the actual name of the team :D But marking a team as a reviewer is quite rare, tbh, so I think it would be fine if we just error out on an invalid name, and perhaps print a list of names that have a close Levenshtein distance (or something like that) to the used name.

@marcoieni
Copy link
Member

Ok, so it seems we could have two PRs to solve this issue:

  1. The first one, just checks for invalid @bors r=abc
  2. The second one, prints a list of names that have a close distance

@rustbot
Copy link
Collaborator

rustbot commented Jan 28, 2025

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.

@Gmin2
Copy link

Gmin2 commented Feb 2, 2025

if anyone is not working on it can i work on it ?
cc @Kobzol

@Kobzol
Copy link
Contributor Author

Kobzol commented Feb 2, 2025

Sure :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
good first issue Good for newcomers
Projects
Status: Backlog
Development

Successfully merging a pull request may close this issue.

4 participants