cli/command
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
..
alias.go fix typo 2020-06-22 15:19:50 +08:00
alias_test.go start on alias delete 2020-06-05 13:04:45 -05:00
completion.go Remove quotes around link 2020-06-08 14:28:19 +02:00
completion_test.go Update all calls to RunCommand 2020-05-05 09:20:01 -07:00
config.go Adding config set example for vscode to docs 2020-06-30 18:17:05 -04:00
config_test.go Write all per-host config entries to hosts.yml 2020-06-02 15:35:13 +02:00
credits.go Fix indentation of Example blocks 2020-06-11 20:31:37 +02:00
gist.go Fix indentation of Example blocks 2020-06-11 20:31:37 +02:00
gist_test.go just use a map + stdin test 2020-05-20 17:44:09 -05:00
help.go Add special case for unsupported gh <command> help 2020-06-16 16:06:51 +02:00
issue.go Merge pull request #1258 from cli/ghe-remotes 2020-07-15 13:07:30 +02:00
issue_lookup.go Respect hostnames when resolving git remotes and URL args to repos 2020-07-02 20:36:10 +02:00
issue_test.go Merge pull request #1258 from cli/ghe-remotes 2020-07-15 13:07:30 +02:00
pr.go Fix pr checkout <owner>:<branch> when it matches the default branch 2020-07-15 15:35:42 +02:00
pr_checkout.go Fix pr checkout <owner>:<branch> when it matches the default branch 2020-07-15 15:35:42 +02:00
pr_checkout_test.go Fix pr checkout <owner>:<branch> when it matches the default branch 2020-07-15 15:35:42 +02:00
pr_create.go Fix hostname being respected in web browse commands 2020-07-02 20:54:07 +02:00
pr_create_test.go Merge remote-tracking branch 'origin' into ghe-remotes 2020-07-13 13:39:14 +02:00
pr_diff.go Declare -R, --repo flag on all issue and pr subcommands 2020-06-30 18:51:53 +02:00
pr_diff_test.go Fix test 2020-05-27 08:38:30 -07:00
pr_lookup.go Respect hostnames when resolving git remotes and URL args to repos 2020-07-02 20:36:10 +02:00
pr_review.go Declare -R, --repo flag on all issue and pr subcommands 2020-06-30 18:51:53 +02:00
pr_review_test.go redundant type slice-string 2020-06-11 07:32:09 +08:00
pr_test.go Fix pr checkout <owner>:<branch> when it matches the default branch 2020-07-15 15:35:42 +02:00
repo.go Fix hostname being respected in web browse commands 2020-07-02 20:54:07 +02:00
repo_test.go Name more queries in test stubs 2020-07-10 20:20:33 +02:00
root.go Merge pull request #1258 from cli/ghe-remotes 2020-07-15 13:07:30 +02:00
root_test.go Respect original hostname in formatRemoteURL() 2020-06-23 20:06:50 +02:00
testing.go scriptability improvements: issue commands 2020-07-14 12:30:53 -05:00
title_body_survey.go Fix pr create not using .github/pull_request_template.md 2020-06-18 09:00:56 +05:30