api: serve gh pr over GraphQL and REST (#114)288e98ea day ago39 lines · 1.1 KB | 1 | [ |
| 2 | { |
| 3 | "command": "gh pr diff 4 -R <host>/<login>/tools", |
| 4 | "requests": |
| 5 | { |
| 6 | "method": |
| 7 | "path": |
| 8 | "query": |
| 9 | "headers": |
| 10 | "accept": |
| 11 | "content-type": |
| 12 | "x-github-api-version": |
| 13 | }, |
| 14 | "body": |
| 15 | "status": |
| 16 | }, |
| 17 | { |
| 18 | "method": |
| 19 | "path": |
| 20 | "query": |
| 21 | "headers": |
| 22 | "accept": |
| 23 | "content-type": |
| 24 | "graphql-features": |
| 25 | "x-github-api-version": |
| 26 | }, |
| 27 | "body": |
| 28 | "query": |
| 29 | "variables": |
| 30 | "owner": |
| 31 | "pr_number": |
| 32 | "repo": |
| 33 | } |
| 34 | }, |
| 35 | "status": |
| 36 | } |
| 37 | ] |
| 38 | } |
| 39 | ] |
[
"
GET
"
,
"
/api/v3/repos/<login>/tools/pulls/4
"
,
{}
,
{
"
application/vnd.github.v3.diff
"
,
"
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) {number,id}
\n\t\t
}
\n\t
}
"
,
{
"
<login>
"
,
4
,
"
tools
"
200