1. The `--json` export now only renders the `login` field for User types
and `name` and `slug` fields for Team types.
2. The `pr view` command now renders team reviewers in the format of
`ORG/SLUG` instead of the team name. This is so that the same value
can be used in the `pr create -r` flag.
74 lines
1.7 KiB
JSON
74 lines
1.7 KiB
JSON
{
|
|
"data": {
|
|
"repository": {
|
|
"pullRequest": {
|
|
"number": 12,
|
|
"title": "Blueberries are from a fork",
|
|
"state": "OPEN",
|
|
"body": "**blueberries taste good**",
|
|
"url": "https://github.com/OWNER/REPO/pull/12",
|
|
"author": {
|
|
"login": "nobody"
|
|
},
|
|
"additions": 100,
|
|
"deletions": 10,
|
|
"reviewRequests": {
|
|
"nodes": [
|
|
{
|
|
"requestedReviewer": {
|
|
"__typename": "user",
|
|
"login": "123"
|
|
}
|
|
},
|
|
{
|
|
"requestedReviewer": {
|
|
"__typename": "Team",
|
|
"name": "Team 1",
|
|
"slug": "team-1",
|
|
"organization": {"login": "my-org"}
|
|
}
|
|
},
|
|
{
|
|
"requestedReviewer": {
|
|
"__typename": "user",
|
|
"login": "abc"
|
|
}
|
|
}
|
|
],
|
|
"totalcount": 1
|
|
},
|
|
"assignees": {
|
|
"nodes": [],
|
|
"totalcount": 0
|
|
},
|
|
"labels": {
|
|
"nodes": [],
|
|
"totalcount": 0
|
|
},
|
|
"projectcards": {
|
|
"nodes": [],
|
|
"totalcount": 0
|
|
},
|
|
"milestone": {},
|
|
"participants": {
|
|
"nodes": [
|
|
{
|
|
"login": "marseilles"
|
|
}
|
|
],
|
|
"totalcount": 1
|
|
},
|
|
"commits": {
|
|
"totalCount": 12
|
|
},
|
|
"baseRefName": "master",
|
|
"headRefName": "blueberries",
|
|
"headRepositoryOwner": {
|
|
"login": "hubot"
|
|
},
|
|
"isCrossRepository": true,
|
|
"isDraft": false
|
|
}
|
|
}
|
|
}
|
|
}
|