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

Use get-branch instead of list-branches (with a limit:100) #34

Open
jehiah opened this issue Aug 15, 2018 · 0 comments
Open

Use get-branch instead of list-branches (with a limit:100) #34

jehiah opened this issue Aug 15, 2018 · 0 comments

Comments

@jehiah
Copy link
Owner

jehiah commented Aug 15, 2018

When folks don't strictly manage their outstanding branches and pass the 100 limit, git-open-pull can't always find the branch on github to open-pull against (depending on sorting).

Github now has a get-branch endpoint that should be used instead of list-branches

https://developer.github.com/v3/repos/branches/#get-branch

branches, _, err := client.Repositories.ListBranches(ctx, settings.User, settings.BaseRepo, &github.ListOptions{PerPage: 100})

cc: @kpurdon

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

No branches or pull requests

1 participant