Serve gh release over the GitHub compatibility layer4951bed17 hours ago74 lines · 2.1 KB | 1 | [ |
| 2 | { |
| 3 | "command": "gh release create v2.0 -R <host>/<login>/tools --target main --draft --notes Not yet", |
| 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 | "body": |
| 16 | "draft": |
| 17 | "prerelease": |
| 18 | "tag_name": |
| 19 | "target_commitish": |
| 20 | }, |
| 21 | "status": |
| 22 | } |
| 23 | ] |
| 24 | }, |
| 25 | { |
| 26 | "command": |
| 27 | "requests": |
| 28 | { |
| 29 | "method": |
| 30 | "path": |
| 31 | "query": |
| 32 | "headers": |
| 33 | "accept": |
| 34 | "content-type": |
| 35 | "x-github-api-version": |
| 36 | }, |
| 37 | "body": |
| 38 | "status": |
| 39 | }, |
| 40 | { |
| 41 | "method": |
| 42 | "path": |
| 43 | "query": |
| 44 | "headers": |
| 45 | "accept": |
| 46 | "content-type": |
| 47 | "x-github-api-version": |
| 48 | }, |
| 49 | "body": |
| 50 | "status": |
| 51 | }, |
| 52 | { |
| 53 | "method": |
| 54 | "path": |
| 55 | "query": |
| 56 | "headers": |
| 57 | "accept": |
| 58 | "content-type": |
| 59 | "graphql-features": |
| 60 | "x-github-api-version": |
| 61 | }, |
| 62 | "body": |
| 63 | "query": |
| 64 | "variables": |
| 65 | "name": |
| 66 | "owner": |
| 67 | "tagName": |
| 68 | } |
| 69 | }, |
| 70 | "status": |
| 71 | } |
| 72 | ] |
| 73 | } |
| 74 | ] |
[
"
POST
"
,
"
/api/v3/repos/<login>/tools/releases
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
2022-11-28
"
{
"
Not yet
"
,
true
,
false
,
"
v2.0
"
,
"
main
"
201
"
gh release view v2.0 -R <host>/<login>/tools --json isDraft
"
,
[
"
GET
"
,
"
/api/v3/repos/<login>/tools/releases/<id>
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
2022-11-28
"
null
,
200
"
GET
"
,
"
/api/v3/repos/<login>/tools/releases/tags/v2.0
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
2022-11-28
"
null
,
404
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
query RepositoryReleaseByTag($name:String!$owner:String!$tagName:String!){repository(owner: $owner, name: $name){release(tagName: $tagName){databaseId,isDraft}}}
"
,
{
"
tools
"
,
"
<login>
"
,
"
v2.0
"
200