Accept PR URL or branch argument in pr checkout <pr>

This commit is contained in:
Mislav Marohnić 2019-12-03 21:19:09 +01:00
parent 519e731038
commit 29de133ccf
3 changed files with 135 additions and 24 deletions

View file

@ -285,6 +285,7 @@ func PullRequestByNumber(client *Client, ghRepo Repo, number int) (*PullRequest,
query($owner: String!, $repo: String!, $pr_number: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $pr_number) {
number
headRefName
headRepositoryOwner {
login