Download this file
| 1 | { |
| 2 | "schema": 1, |
| 3 | "id": "github", |
| 4 | "name": "GitHub", |
| 5 | "category": "development", |
| 6 | "auth": { |
| 7 | "kind": "both", |
| 8 | "base": "https://api.github.com", |
| 9 | "authorization": "Bearer", |
| 10 | "headers": { |
| 11 | "Accept": "application/vnd.github+json", |
| 12 | "X-GitHub-Api-Version": "2022-11-28" |
| 13 | }, |
| 14 | "pat_help": "https://github.com/settings/personal-access-tokens — create a fine-grained token limited to the repositories you want reachable", |
| 15 | "oauth": { |
| 16 | "authorize_url": "https://github.com/login/oauth/authorize", |
| 17 | "token_url": "https://github.com/login/oauth/access_token", |
| 18 | "scopes": [] |
| 19 | } |
| 20 | }, |
| 21 | "ops": [ |
| 22 | { |
| 23 | "id": "viewer", |
| 24 | "label": "Check who the token belongs to", |
| 25 | "access": "read", |
| 26 | "method": "GET", |
| 27 | "path": "/user", |
| 28 | "pick": { |
| 29 | "fields": [ |
| 30 | "login", |
| 31 | "name", |
| 32 | "html_url" |
| 33 | ] |
| 34 | } |
| 35 | }, |
| 36 | { |
| 37 | "id": "repos.list", |
| 38 | "label": "List your repositories", |
| 39 | "access": "read", |
| 40 | "method": "GET", |
| 41 | "path": "/user/repos?sort=pushed&per_page=100", |
| 42 | "pick": { |
| 43 | "fields": [ |
| 44 | "full_name", |
| 45 | "description", |
| 46 | "private", |
| 47 | "archived", |
| 48 | "fork", |
| 49 | "html_url", |
| 50 | "open_issues_count", |
| 51 | "stargazers_count", |
| 52 | "pushed_at" |
| 53 | ] |
| 54 | } |
| 55 | }, |
| 56 | { |
| 57 | "id": "issues.list", |
| 58 | "label": "List a repository's open issues and pull requests", |
| 59 | "access": "read", |
| 60 | "method": "GET", |
| 61 | "path": "/repos/{owner}/{repo}/issues?state=open&per_page=50", |
| 62 | "args": { |
| 63 | "owner": { |
| 64 | "required": true |
| 65 | }, |
| 66 | "repo": { |
| 67 | "required": true |
| 68 | } |
| 69 | }, |
| 70 | "pick": { |
| 71 | "fields": [ |
| 72 | "number", |
| 73 | "title", |
| 74 | "html_url", |
| 75 | "user.login", |
| 76 | "comments", |
| 77 | "created_at", |
| 78 | "updated_at", |
| 79 | "draft", |
| 80 | "pull_request.url" |
| 81 | ] |
| 82 | } |
| 83 | }, |
| 84 | { |
| 85 | "id": "issue.create", |
| 86 | "label": "Open an issue", |
| 87 | "access": "write", |
| 88 | "method": "POST", |
| 89 | "path": "/repos/{owner}/{repo}/issues", |
| 90 | "args": { |
| 91 | "owner": { |
| 92 | "required": true |
| 93 | }, |
| 94 | "repo": { |
| 95 | "required": true |
| 96 | }, |
| 97 | "title": { |
| 98 | "required": true |
| 99 | }, |
| 100 | "body": {} |
| 101 | }, |
| 102 | "body_json": { |
| 103 | "title": "{title}", |
| 104 | "body": "{body}" |
| 105 | }, |
| 106 | "pick": { |
| 107 | "fields": [ |
| 108 | "number", |
| 109 | "title", |
| 110 | "html_url" |
| 111 | ] |
| 112 | }, |
| 113 | "confirm": "Open the issue “{title}” in {owner}/{repo}?" |
| 114 | } |
| 115 | ] |
| 116 | } |
| 117 | |