At the time we have a reference to `baseRepo`, we might still not have contacted the API nor obtained any information about the default branch for the repository. This expands the `PullRequests()` query to always report the default branch so we may choose how to render entries that belong on the current branch.
29 lines
605 B
JSON
29 lines
605 B
JSON
{
|
|
"data": {
|
|
"repository": {
|
|
"defaultBranchRef": { "name": "blueberries" },
|
|
"pullRequests": {
|
|
"totalCount": 1,
|
|
"edges": [
|
|
{
|
|
"node": {
|
|
"number": 8,
|
|
"title": "Blueberries are a good fruit",
|
|
"state": "MERGED",
|
|
"url": "https://github.com/cli/cli/pull/8",
|
|
"headRefName": "blueberries"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"viewerCreated": {
|
|
"totalCount": 0,
|
|
"edges": []
|
|
},
|
|
"reviewRequested": {
|
|
"totalCount": 0,
|
|
"edges": []
|
|
}
|
|
}
|
|
}
|