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.
30 lines
760 B
JSON
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
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|