Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Handle r? as assignment #946

Closed
wants to merge 1 commit into from
Closed

Handle r? as assignment #946

wants to merge 1 commit into from

Conversation

kellda
Copy link
Contributor

@kellda kellda commented Oct 29, 2020

Rewrite of #433 for current master

r? @Mark-Simulacrum

@Mark-Simulacrum
Copy link
Member

Thanks!

This is primarily stalled on custom roles on the GitHub side, as we would like to avoid giving triagebot admin access org-wide (or configuring each repository individually with triagebot when adding reviewers to that repository).

@kellda
Copy link
Contributor Author

kellda commented Nov 3, 2020

Thanks for that infromation, seems resonable not wanting to make triagebot admin. However

  • Isn't write access enough ? (Or is write access the same as admin ?)
  • Isn't this just an alias to the assign command ?
  • Does rust-highfive have more permissions than triagebot ?

@Mark-Simulacrum
Copy link
Member

Write access is indeed enough for each repository, but there's no current org-level way to grant that to triagebot AFAIK (without making it an admin, or a service that would adjust permissions like that on all repositories under rust-lang). Highfive currently needs to be configured for each repository too, AFAIK, but if we triagebot and highfive overlap on commands they can receive (in particular for this PR, r?) then we'll end up seeing double comments/assignments etc which isn't going to end well -- and highfive unlike triagebot does not support gradual enable/disable of features.

I have not reviewed the particular implementation here, but IIRC r? generally behaves somewhat differently I believe from assign in some cases. In particular highfive's r? (probably correctly) does not permit review assignment for non-org members (who don't have r+ anyway). But I'd need to think about the right thing here to be able to answer in more detail.

@kellda
Copy link
Contributor Author

kellda commented Nov 3, 2020

Thanks for the explanation.

As said, this is just a rebase/rewrite of #433 you wrote half a year ago. Here r? behaves almost like @triagebot assign (i.e. it is only parsed differently).

    This adds parsing support for handling r? to direct assignment; anyone can do so
    on a PR to any org member.

    A future commit will add support for r? with a team.

    This does not currently auto-assign reviewers like highfive to new PRs, though.
@fmease
Copy link
Member

fmease commented Nov 3, 2022

This can be closed since the functionality is now implemented, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants