cli/test/fixtures/prView.json
Mislav Marohnić 508f6787f0 Have PullRequestForBranch accept "owner:branch" value for forks
When on a `patch-1` branch locally, `gh pr view` would happily open the
first open PR it finds with "patch-1" as its head, even those coming
from forks.
2019-11-20 15:20:36 +01:00

30 lines
760 B
JSON

{
"data": {
"repository": {
"pullRequests": {
"nodes": [
{
"number": 12,
"title": "Blueberries are from a fork",
"url": "https://github.com/OWNER/REPO/pull/12",
"headRefName": "blueberries",
"headRepositoryOwner": {
"login": "hubot"
},
"isCrossRepository": true
},
{
"number": 10,
"title": "Blueberries are a good fruit",
"url": "https://github.com/OWNER/REPO/pull/10",
"headRefName": "blueberries",
"headRepositoryOwner": {
"login": "OWNER"
},
"isCrossRepository": false
}
]
}
}
}
}