-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add support for BranchListOptions #1272
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
Add support for BranchListOptions #1272
Conversation
|
This branch failed to pass CI because of Go 1.13. |
Codecov Report
@@ Coverage Diff @@
## master #1272 +/- ##
=======================================
Coverage 73.42% 73.42%
=======================================
Files 86 86
Lines 6040 6040
=======================================
Hits 4435 4435
Misses 836 836
Partials 769 769
Continue to review full report at Codecov.
|
gmlewis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @shotat, and sorry for the delay.
Could you please make the minor comment change I'm requesting then we will merge this after we get a second LGTM.
github/repos.go
Outdated
| // Setting to true returns only protected branches. | ||
| // When set to false, only unprotected branches are returned. | ||
| // Omitting this parameter returns all branches. | ||
| // Default: null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Go, we prefer to say nil over null. Could you please change this?
gmlewis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @shotat!
LGTM.
Awaiting second LGTM before merging.
|
Thanks for your review! |
|
Thank you, @gauntface! |
Add support for BranchListOptions for
RepositoriesService.ListBranches.ref. https://developer.github.com/v3/repos/branches/#list-branches