-
Notifications
You must be signed in to change notification settings - Fork 7
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
Prevent assigning someone to review their own GitHub PR #36
Prevent assigning someone to review their own GitHub PR #36
Conversation
There was an idea to allow folks to associate their GH username with their slack id. Given such, this would be one of possibly many useful applications. I think I'd prefer that over making an additional HTTP request to GH during assignment... Thoughts on that? |
@iamvery: Your scenario assumes that the person asking for the review is also the person who opened the PR. If someone requests a reviewer for someone else's PR, that case will be mishandled unless we ask GitHub who owns the PR. I actually did this today, so it's not 100% made-up. :) |
@jeremy-w that makes sense @randomstep not if there is a legit case for it (which there seems to be) I'm trying hard not to be overly pedantic about these things. Fix up the merge conflict and ping me. I'd love to make this better for us :) |
This prevents self-assigning reviews.
This prevents hitting the network for a bogus PR.
d65838c
to
1dc0b5c
Compare
@iamvery This has been fixed up to account for |
Prevent assigning someone to review their own GitHub PR
Grabs the PR's info before assigning a reviewer, and grabs the next reviewer if its first draw turned out to be the user that opened the PR in the first place.