Serve gh release over the GitHub compatibility layer4951bed13 hours ago106 lines · 4.9 KB | 1 | [ |
| 2 | { |
| 3 | "command": "gh pr comment 4 -R <host>/<login>/tools --body Looks good", |
| 4 | "requests": |
| 5 | { |
| 6 | "method": |
| 7 | "path": |
| 8 | "query": |
| 9 | "headers": |
| 10 | "accept": |
| 11 | "content-type": |
| 12 | "graphql-features": |
| 13 | "x-github-api-version": |
| 14 | }, |
| 15 | "body": |
| 16 | "query": |
| 17 | "variables": |
| 18 | "owner": |
| 19 | "pr_number": |
| 20 | "repo": |
| 21 | } |
| 22 | }, |
| 23 | "status": |
| 24 | }, |
| 25 | { |
| 26 | "method": |
| 27 | "path": |
| 28 | "query": |
| 29 | "headers": |
| 30 | "accept": |
| 31 | "content-type": |
| 32 | "graphql-features": |
| 33 | "x-github-api-version": |
| 34 | }, |
| 35 | "body": |
| 36 | "query": |
| 37 | "variables": |
| 38 | "input": |
| 39 | "subjectId": |
| 40 | "body": |
| 41 | } |
| 42 | } |
| 43 | }, |
| 44 | "status": |
| 45 | } |
| 46 | ] |
| 47 | }, |
| 48 | { |
| 49 | "command": |
| 50 | "requests": |
| 51 | { |
| 52 | "method": |
| 53 | "path": |
| 54 | "query": |
| 55 | "headers": |
| 56 | "accept": |
| 57 | "content-type": |
| 58 | "x-github-api-version": |
| 59 | }, |
| 60 | "body": |
| 61 | "status": |
| 62 | }, |
| 63 | { |
| 64 | "method": |
| 65 | "path": |
| 66 | "query": |
| 67 | "headers": |
| 68 | "accept": |
| 69 | "content-type": |
| 70 | "graphql-features": |
| 71 | "x-github-api-version": |
| 72 | }, |
| 73 | "body": |
| 74 | "query": |
| 75 | "variables": |
| 76 | "owner": |
| 77 | "pr_number": |
| 78 | "repo": |
| 79 | } |
| 80 | }, |
| 81 | "status": |
| 82 | }, |
| 83 | { |
| 84 | "method": |
| 85 | "path": |
| 86 | "query": |
| 87 | "headers": |
| 88 | "accept": |
| 89 | "content-type": |
| 90 | "graphql-features": |
| 91 | "x-github-api-version": |
| 92 | }, |
| 93 | "body": |
| 94 | "query": |
| 95 | "variables": |
| 96 | "endCursor": |
| 97 | "name": |
| 98 | "number": |
| 99 | "owner": |
| 100 | } |
| 101 | }, |
| 102 | "status": |
| 103 | } |
| 104 | ] |
| 105 | } |
| 106 | ] |
[
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
\n\t
query PullRequestByNumber($owner: String!, $repo: String!, $pr_number: Int!) {
\n\t\t
repository(owner: $owner, name: $repo) {
\n\t\t\t
pullRequest(number: $pr_number) {id,url,number}
\n\t\t
}
\n\t
}
"
,
{
"
<login>
"
,
4
,
"
tools
"
200
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
mutation CommentCreate($input:AddCommentInput!){addComment(input: $input){commentEdge{node{url}}}}
"
,
{
{
"
PR_<id>
"
,
"
Looks good
"
200
"
gh pr view 4 -R <host>/<login>/tools --comments
"
,
[
"
GET
"
,
"
/api/v3/meta
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
2022-11-28
"
null
,
200
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
\n\t
query PullRequestByNumber($owner: String!, $repo: String!, $pr_number: Int!) {
\n\t\t
repository(owner: $owner, name: $repo) {
\n\t\t\t
pullRequest(number: $pr_number) {url,number,title,state,body,author{login,...on User{id,name}},autoMergeRequest {authorEmail,commitBody,commitHeadline,mergeMethod,enabledAt,enabledBy{login,...on User{id,name}}},isDraft,maintainerCanModify,mergeable,additions,deletions,commits{totalCount},baseRefName,headRefName,headRepositoryOwner{id,login,...on User{name}},headRepository{id,name,nameWithOwner},isCrossRepository,reviewRequests(first: 100) {nodes {requestedReviewer {__typename,...on User{login,name},...on Bot{login},...on Team{organization{login}name,slug}}}},reviews(first: 100) {nodes {id,author{login},authorAssociation,submittedAt,body,state,commit{oid},reactionGroups{content,users{totalCount}}}pageInfo{hasNextPage,endCursor}totalCount},assignees(first:100){nodes{id,login,name,databaseId},totalCount},labels(first:100){nodes{id,name,description,color},totalCount},milestone{number,title,description,dueOn},comments(first: 100) {nodes {id,author{login,...on User{id,name}},authorAssociation,body,createdAt,includesCreatedEdit,isMinimized,minimizedReason,reactionGroups{content,users{totalCount}},url,viewerDidAuthor},pageInfo{hasNextPage,endCursor},totalCount},reactionGroups{content,users{totalCount}},createdAt,statusCheckRollup: commits(last: 1) {nodes {commit {statusCheckRollup {contexts(first:100) {nodes {__typename...on StatusContext {context,state,targetUrl,createdAt,description},...on CheckRun {name,checkSuite{workflowRun{workflow{name}}},status,conclusion,startedAt,completedAt,detailsUrl}},pageInfo{hasNextPage,endCursor}}}}}},id}
\n\t\t
}
\n\t
}
"
,
{
"
<login>
"
,
4
,
"
tools
"
200
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
query PullRequestProjectItems($endCursor:String$name:String!$number:Int!$owner:String!){repository(owner: $owner, name: $name){pullRequest(number: $number){projectItems(first: 100, after: $endCursor){totalCount,nodes{id,project{id,title},status:fieldValueByName(name:
\"
Status
\"
){... on ProjectV2ItemFieldSingleSelectValue{optionId,name}}},pageInfo{hasNextPage,endCursor}}}}}
"
,
{
null
,
"
tools
"
,
4
,
"
<login>
"
200