Skip to content

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

Description

@jehiah

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions