cli/api
Mislav Marohnić 305cd290ee Fix pr checkout <owner>:<branch> when it matches the default branch
First, consolidate the functionality between `pr merge` and `pr
checkout` that resolves the default branch name of the base repo. With
an added bonus, the new approach avoids an API request when one isn't
necessary.

Then, ensure that checking out 3rd-party PRs will result in local branch
name such as `<owner>/<branch>` when the head branch of the repository
matches the default branch of the base repository. We already have had
code in place to take care of this, but it only took effect in the `pr
checkout <number>`-style invocation.
2020-07-15 15:35:42 +02:00
..
client.go Only check OAuth scopes when X-Oauth-Scopes header is present 2020-07-13 15:53:53 +02:00
client_test.go Only check OAuth scopes when X-Oauth-Scopes header is present 2020-07-13 15:53:53 +02:00
pull_request_test.go Prevent crash when encountering "STALE" check conclusion 2020-03-27 09:54:11 +01:00
queries_gist.go just use a map + stdin test 2020-05-20 17:44:09 -05:00
queries_issue.go Rename IssueCreate mutation 2020-07-10 18:08:16 +02:00
queries_issue_test.go Add milestone filter 2020-06-13 20:53:41 -05:00
queries_org.go Add names to GraphQL queries made over shurcooL adapter 2020-07-07 17:53:40 +02:00
queries_pr.go Fix pr checkout <owner>:<branch> when it matches the default branch 2020-07-15 15:35:42 +02:00
queries_pr_test.go Name more queries in test stubs 2020-07-10 20:20:33 +02:00
queries_repo.go Fix pr checkout <owner>:<branch> when it matches the default branch 2020-07-15 15:35:42 +02:00
queries_repo_test.go Name more queries in test stubs 2020-07-10 20:20:33 +02:00
queries_user.go Add names to GraphQL queries made over shurcooL adapter 2020-07-07 17:53:40 +02:00