{ "schema": 1, "id": "github", "name": "GitHub", "category": "development", "auth": { "kind": "both", "base": "https://api.github.com", "authorization": "Bearer", "headers": { "Accept": "application/vnd.github+json", "X-GitHub-Api-Version": "2022-11-28" }, "pat_help": "https://github.com/settings/personal-access-tokens — create a fine-grained token limited to the repositories you want reachable", "oauth": { "authorize_url": "https://github.com/login/oauth/authorize", "token_url": "https://github.com/login/oauth/access_token", "scopes": [] } }, "ops": [ { "id": "viewer", "label": "Check who the token belongs to", "access": "read", "method": "GET", "path": "/user", "pick": { "fields": [ "login", "name", "html_url" ] } }, { "id": "repos.list", "label": "List your repositories", "access": "read", "method": "GET", "path": "/user/repos?sort=pushed&per_page=100", "pick": { "fields": [ "full_name", "description", "private", "archived", "fork", "html_url", "open_issues_count", "stargazers_count", "pushed_at" ] } }, { "id": "issues.list", "label": "List a repository's open issues and pull requests", "access": "read", "method": "GET", "path": "/repos/{owner}/{repo}/issues?state=open&per_page=50", "args": { "owner": { "required": true }, "repo": { "required": true } }, "pick": { "fields": [ "number", "title", "html_url", "user.login", "comments", "created_at", "updated_at", "draft", "pull_request.url" ] } }, { "id": "issue.create", "label": "Open an issue", "access": "write", "method": "POST", "path": "/repos/{owner}/{repo}/issues", "args": { "owner": { "required": true }, "repo": { "required": true }, "title": { "required": true }, "body": {} }, "body_json": { "title": "{title}", "body": "{body}" }, "pick": { "fields": [ "number", "title", "html_url" ] }, "confirm": "Open the issue “{title}” in {owner}/{repo}?" } ] }