api: record what real gh sends and check it against what Ghost servesdcd2fb6a day ago26 lines · 786 B | 1 | [ |
| 2 | { |
| 3 | "command": "gh repo view <host>/<login>/tools --json name,owner,visibility,defaultBranchRef", |
| 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 | "name": |
| 19 | "owner": |
| 20 | } |
| 21 | }, |
| 22 | "status": |
| 23 | } |
| 24 | ] |
| 25 | } |
| 26 | ] |
[
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
query RepositoryInfo($owner: String!, $name: String!) {
\n\t\t
repository(owner: $owner, name: $name) {name,owner{id,login},visibility,defaultBranchRef{name}}
\n\t
}
"
,
{
"
tools
"
,
"
<login>
"
200