Skip to content

Add the maintainer_can_modify option to the PullRequest structs #590

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

Merged
merged 1 commit into from
Mar 11, 2017
Merged

Add the maintainer_can_modify option to the PullRequest structs #590

merged 1 commit into from
Mar 11, 2017

Conversation

j-mie
Copy link
Contributor

@j-mie j-mie commented Mar 11, 2017

This fixes #589

j-mie added a commit to HippieStation/PRMirror that referenced this pull request Mar 11, 2017
Add a function to dump the DB
Add itob and btoi, remove IntToByteArray
Clean up Erik's shitty DB functions
Begin to start creating PRs on InitialCreate (need Google to merge a fix for this to work though, google/go-github#590)
Copy link
Member

@dmitshur dmitshur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great PR (best viewed ignoring whitespace via https://github.com/google/go-github/pull/590/files?w=1, btw). I don't see any issues, and I don't have any suggestions for improvement. Thanks @JamieH!

LGTM.

The only thing I can think of is you could consider exercising the new pullRequestUpdate.MaintainerCanModify field in TestPullRequestsService_Edit test. But it's fine either way, up to you.

Also, we got lucky that the same field was added to the big PullRequest struct (can be seen at the bottom of the example at https://developer.github.com/v3/pulls/#get-a-single-pull-request), so the fact Edit uses pull *PullRequest parameter did not create a problem.

@dmitshur dmitshur requested a review from gmlewis March 11, 2017 05:21
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @JamieH and @shurcooL!
LGTM.

@j-mie
Copy link
Contributor Author

j-mie commented Mar 11, 2017

Thanks :)

@dmitshur
Copy link
Member

Merging.

@dmitshur dmitshur merged commit 69fd0ad into google:master Mar 11, 2017
@j-mie j-mie deleted the fix-maintainer_can_modify branch March 11, 2017 18:21
bubg-dev pushed a commit to bubg-dev/go-github that referenced this pull request Jun 16, 2017
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.

NewPullRequest method does not support setting "maintainer_can_modify"
3 participants