cli/pkg/httpmock
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
..
legacy.go Match named queries in test stubs 2020-07-10 20:04:54 +02:00
registry.go Fix pr checkout <owner>:<branch> when it matches the default branch 2020-07-15 15:35:42 +02:00
stub.go Match named queries in test stubs 2020-07-10 20:04:54 +02:00