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

Prevent assigning someone to review their own GitHub PR #36

Merged
merged 6 commits into from
Jan 29, 2016

Conversation

jeremy-w
Copy link
Contributor

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.

@wolfbrain
Copy link
Collaborator

👀 @sebastiangeiger

@iamvery
Copy link
Owner

iamvery commented Jan 10, 2016

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?

@jeremy-w
Copy link
Contributor Author

@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. :)

@randomstep
Copy link

@iamvery is the extra request much overhead? It seems to my uninformed eyes to be a reasonable "just enough" solution.

FYI @jeremy-w this branch has a conflict currently.

@iamvery
Copy link
Owner

iamvery commented Jan 27, 2016

@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 :)

@jeremy-w jeremy-w force-pushed the jeremy-w/prevent-self-assignment branch from d65838c to 1dc0b5c Compare January 28, 2016 21:26
@jeremy-w
Copy link
Contributor Author

@iamvery This has been fixed up to account for next_reviewer taking a room argument.

iamvery pushed a commit that referenced this pull request Jan 29, 2016
Prevent assigning someone to review their own GitHub PR
@iamvery iamvery merged commit 5e41b98 into iamvery:master Jan 29, 2016
iamvery added a commit that referenced this pull request Jan 29, 2016
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.

None yet

4 participants