Serve gh release over the GitHub compatibility layer4951bed17 hours ago279 lines · 9.3 KB | 1 | [ |
| 2 | { |
| 3 | "command": "gh issue comment 1 -R <host>/<login>/tools --body From gh", |
| 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 | "number": |
| 19 | "owner": |
| 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 | "number": |
| 77 | "owner": |
| 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 | "input": |
| 97 | "id": |
| 98 | "title": |
| 99 | } |
| 100 | } |
| 101 | }, |
| 102 | "status": |
| 103 | }, |
| 104 | { |
| 105 | "method": |
| 106 | "path": |
| 107 | "query": |
| 108 | "headers": |
| 109 | "accept": |
| 110 | "content-type": |
| 111 | "graphql-features": |
| 112 | "x-github-api-version": |
| 113 | }, |
| 114 | "body": |
| 115 | "query": |
| 116 | "variables": |
| 117 | "input": |
| 118 | "labelableId": |
| 119 | "labelIds": |
| 120 | "LA_<id>" |
| 121 | ] |
| 122 | } |
| 123 | } |
| 124 | }, |
| 125 | "status": |
| 126 | }, |
| 127 | { |
| 128 | "method": |
| 129 | "path": |
| 130 | "query": |
| 131 | "headers": |
| 132 | "accept": |
| 133 | "content-type": |
| 134 | "graphql-features": |
| 135 | "x-github-api-version": |
| 136 | }, |
| 137 | "body": |
| 138 | "query": |
| 139 | }, |
| 140 | "status": |
| 141 | }, |
| 142 | { |
| 143 | "method": |
| 144 | "path": |
| 145 | "query": |
| 146 | "headers": |
| 147 | "accept": |
| 148 | "content-type": |
| 149 | "graphql-features": |
| 150 | "x-github-api-version": |
| 151 | }, |
| 152 | "body": |
| 153 | "query": |
| 154 | "variables": |
| 155 | "endCursor": |
| 156 | "name": |
| 157 | "owner": |
| 158 | } |
| 159 | }, |
| 160 | "status": |
| 161 | } |
| 162 | ] |
| 163 | }, |
| 164 | { |
| 165 | "command": |
| 166 | "requests": |
| 167 | { |
| 168 | "method": |
| 169 | "path": |
| 170 | "query": |
| 171 | "headers": |
| 172 | "accept": |
| 173 | "content-type": |
| 174 | "graphql-features": |
| 175 | "x-github-api-version": |
| 176 | }, |
| 177 | "body": |
| 178 | "query": |
| 179 | "variables": |
| 180 | "number": |
| 181 | "owner": |
| 182 | "repo": |
| 183 | } |
| 184 | }, |
| 185 | "status": |
| 186 | }, |
| 187 | { |
| 188 | "method": |
| 189 | "path": |
| 190 | "query": |
| 191 | "headers": |
| 192 | "accept": |
| 193 | "content-type": |
| 194 | "graphql-features": |
| 195 | "x-github-api-version": |
| 196 | }, |
| 197 | "body": |
| 198 | "query": |
| 199 | "variables": |
| 200 | "input": |
| 201 | "issueId": |
| 202 | } |
| 203 | } |
| 204 | }, |
| 205 | "status": |
| 206 | } |
| 207 | ] |
| 208 | }, |
| 209 | { |
| 210 | "command": |
| 211 | "requests": |
| 212 | { |
| 213 | "method": |
| 214 | "path": |
| 215 | "query": |
| 216 | "headers": |
| 217 | "accept": |
| 218 | "content-type": |
| 219 | "graphql-features": |
| 220 | "x-github-api-version": |
| 221 | }, |
| 222 | "body": |
| 223 | "query": |
| 224 | "variables": |
| 225 | "number": |
| 226 | "owner": |
| 227 | "repo": |
| 228 | } |
| 229 | }, |
| 230 | "status": |
| 231 | } |
| 232 | ] |
| 233 | }, |
| 234 | { |
| 235 | "command": |
| 236 | "requests": |
| 237 | { |
| 238 | "method": |
| 239 | "path": |
| 240 | "query": |
| 241 | "headers": |
| 242 | "accept": |
| 243 | "content-type": |
| 244 | "graphql-features": |
| 245 | "x-github-api-version": |
| 246 | }, |
| 247 | "body": |
| 248 | "query": |
| 249 | "variables": |
| 250 | "number": |
| 251 | "owner": |
| 252 | "repo": |
| 253 | } |
| 254 | }, |
| 255 | "status": |
| 256 | }, |
| 257 | { |
| 258 | "method": |
| 259 | "path": |
| 260 | "query": |
| 261 | "headers": |
| 262 | "accept": |
| 263 | "content-type": |
| 264 | "graphql-features": |
| 265 | "x-github-api-version": |
| 266 | }, |
| 267 | "body": |
| 268 | "query": |
| 269 | "variables": |
| 270 | "input": |
| 271 | "issueId": |
| 272 | } |
| 273 | } |
| 274 | }, |
| 275 | "status": |
| 276 | } |
| 277 | ] |
| 278 | } |
| 279 | ] |
[
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
\n\t
query IssueByNumber($owner: String!, $repo: String!, $number: Int!) {
\n\t\t
repository(owner: $owner, name: $repo) {
\n\t\t\t
hasIssuesEnabled
\n\t\t\t
issue: issueOrPullRequest(number: $number) {
\n\t\t\t\t
__typename
\n\t\t\t\t
...on Issue{id,url}
\n\t\t\t\t
...on PullRequest{id,url}
\n\t\t\t
}
\n\t\t
}
\n\t
}
"
,
{
1
,
"
<login>
"
,
"
tools
"
200
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
mutation CommentCreate($input:AddCommentInput!){addComment(input: $input){commentEdge{node{url}}}}
"
,
{
{
"
I_<id>
"
,
"
From gh
"
200
"
gh issue edit 1 -R <host>/<login>/tools --title Broken build (edited) --add-label bug
"
,
[
"
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 IssueByNumber($owner: String!, $repo: String!, $number: Int!) {
\n\t\t
repository(owner: $owner, name: $repo) {
\n\t\t\t
hasIssuesEnabled
\n\t\t\t
issue: issueOrPullRequest(number: $number) {
\n\t\t\t\t
__typename
\n\t\t\t\t
...on Issue{id,number,title,body,url,labels(first:100){nodes{id,name,description,color},totalCount}}
\n\t\t\t\t
...on PullRequest{id,number,title,body,url,labels(first:100){nodes{id,name,description,color},totalCount}}
\n\t\t\t
}
\n\t\t
}
\n\t
}
"
,
{
1
,
"
<login>
"
,
"
tools
"
200
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
mutation IssueUpdate($input:UpdateIssueInput!){updateIssue(input: $input){__typename}}
"
,
{
{
"
I_<id>
"
,
"
Broken build (edited)
"
200
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
mutation LabelAdd($input:AddLabelsToLabelableInput!){addLabelsToLabelable(input: $input){__typename}}
"
,
{
{
"
I_<id>
"
,
[
200
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
query Issue_fields{Issue: __type(name:
\"
Issue
\"
){fields(includeDeprecated: true){name}}}
"
200
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
query RepositoryLabelList($endCursor:String$name:String!$owner:String!){repository(owner: $owner, name: $name){labels(first: 100, orderBy: {field: NAME, direction: ASC}, after: $endCursor){nodes{id,name},pageInfo{hasNextPage,endCursor}}}}
"
,
{
null
,
"
tools
"
,
"
<login>
"
200
"
gh issue close 1 -R <host>/<login>/tools
"
,
[
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
\n\t
query IssueByNumber($owner: String!, $repo: String!, $number: Int!) {
\n\t\t
repository(owner: $owner, name: $repo) {
\n\t\t\t
hasIssuesEnabled
\n\t\t\t
issue: issueOrPullRequest(number: $number) {
\n\t\t\t\t
__typename
\n\t\t\t\t
...on Issue{id,number,title,state}
\n\t\t\t\t
...on PullRequest{id,number,title,state}
\n\t\t\t
}
\n\t\t
}
\n\t
}
"
,
{
1
,
"
<login>
"
,
"
tools
"
200
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
mutation IssueClose($input:CloseIssueInput!){closeIssue(input: $input){issue{id}}}
"
,
{
{
"
I_<id>
"
200
"
gh issue view 1 -R <host>/<login>/tools --json state,title,labels
"
,
[
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
\n\t
query IssueByNumber($owner: String!, $repo: String!, $number: Int!) {
\n\t\t
repository(owner: $owner, name: $repo) {
\n\t\t\t
hasIssuesEnabled
\n\t\t\t
issue: issueOrPullRequest(number: $number) {
\n\t\t\t\t
__typename
\n\t\t\t\t
...on Issue{state,title,labels(first:100){nodes{id,name,description,color},totalCount},id}
\n\t\t\t\t
...on PullRequest{state,title,labels(first:100){nodes{id,name,description,color},totalCount},id}
\n\t\t\t
}
\n\t\t
}
\n\t
}
"
,
{
1
,
"
<login>
"
,
"
tools
"
200
"
gh issue reopen 1 -R <host>/<login>/tools
"
,
[
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
\n\t
query IssueByNumber($owner: String!, $repo: String!, $number: Int!) {
\n\t\t
repository(owner: $owner, name: $repo) {
\n\t\t\t
hasIssuesEnabled
\n\t\t\t
issue: issueOrPullRequest(number: $number) {
\n\t\t\t\t
__typename
\n\t\t\t\t
...on Issue{id,number,title,state}
\n\t\t\t\t
...on PullRequest{id,number,title,state}
\n\t\t\t
}
\n\t\t
}
\n\t
}
"
,
{
1
,
"
<login>
"
,
"
tools
"
200
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
mutation IssueReopen($input:ReopenIssueInput!){reopenIssue(input: $input){issue{id}}}
"
,
{
{
"
I_<id>
"
200