openapi: 3.0.3 info: title: Github version: 0.4.64 description: See https://developer.github.com/v3/ servers: - url: https://api.github.com paths: /orgs/{org}/repos: get: description: List repositories for the specified org. parameters: - name: org in: path required: true schema: type: string - name: page in: query required: true schema: type: integer format: int64 - name: type in: query required: true schema: type: string - name: sort in: query required: true schema: type: string - name: direction in: query required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsRepository' '401': description: Unauthorized /repos/{owner}/{repo}/contents/{path}: get: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string - name: path in: path required: true schema: type: string - name: ref in: query required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsContents' '401': description: Unauthorized '404': description: Not found /repos/{owner}/{repo}/git/blobs: post: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsBlobForm' required: true responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsBlobCreated' '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsUnprocessableEntity' /repos/{owner}/{repo}/git/blobs/{sha}: get: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string - name: sha in: path required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsBlob' '404': description: Not found /repos/{owner}/{repo}/git/commits: post: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsCommitForm' required: true responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsCommitResponse' '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsUnprocessableEntity' /repos/{owner}/{repo}/git/commits/{sha}: get: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string - name: sha in: path required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsCommit' '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsUnprocessableEntity' /repos/{owner}/{repo}/git/refs: get: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsRef' '404': description: Not found post: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsRefForm' required: true responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsRef' '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsUnprocessableEntity' /repos/{owner}/{repo}/git/refs/{ref}: get: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string - name: ref in: path required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsRef' '404': description: Not found put: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string - name: ref in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsRefUpdateForm' required: true responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsRef' '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsUnprocessableEntity' /repos/{owner}/{repo}/git/tags: post: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsTagForm' required: true responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsTag' '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsUnprocessableEntity' /repos/{owner}/{repo}/git/trees: post: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsCreateTreeForm' required: true responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsCreateTreeResponse' '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsUnprocessableEntity' /repos/{owner}/{repo}/hooks: get: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsHook' '404': description: Not found post: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsHookForm' required: true responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsHook' '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsUnprocessableEntity' /repos/{owner}/{repo}/hooks/{id}: get: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string - name: id in: path required: true schema: type: integer format: int64 responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsHook' '404': description: Not found delete: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string - name: id in: path required: true schema: type: integer format: int64 responses: '204': description: No content '404': description: Not found /repos/{owner}/{repo}/pulls: get: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string - name: page in: query required: true schema: type: integer format: int64 responses: '200': description: Successful response content: application/json: schema: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsPullRequest' '404': description: Not found post: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsPullRequestForm' required: true responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsPullRequest' '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsUnprocessableEntity' /repos/{owner}/{repo}/readme: get: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string - name: ref in: query required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsContents' '401': description: Unauthorized '404': description: Not found /repos/{owner}/{repo}/tags: get: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string - name: page in: query required: true schema: type: integer format: int64 - name: per_page in: query required: true schema: type: integer format: int64 responses: '200': description: Successful response content: application/json: schema: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsTagSummary' '404': description: Not found /repos/{owner}/{repo}/tags/{sha}: get: parameters: - name: owner in: path required: true schema: type: string - name: repo in: path required: true schema: type: string - name: sha in: path required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsTag' '404': description: Not found /user: get: responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/IoFlowGithubV0ModelsUser' '401': description: Unauthorized /user/emails: get: responses: '200': description: Successful response content: application/json: schema: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsUserEmail' '401': description: Unauthorized /user/orgs: get: parameters: - name: page in: query required: true schema: type: integer format: int64 - name: per_page in: query required: false schema: type: integer format: int64 responses: '200': description: Successful response content: application/json: schema: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsUserOrg' '401': description: Unauthorized /user/repos: get: parameters: - name: page in: query required: true schema: type: integer format: int64 - name: visibility in: query required: true schema: $ref: '#/components/schemas/IoFlowGithubV0EnumsVisibility' - name: affiliation in: query required: false schema: type: string - name: type in: query required: false schema: type: string - name: sort in: query required: true schema: type: string - name: direction in: query required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsRepository' '401': description: Unauthorized /users/{username}/repos: get: description: List public repositories for the specified user. parameters: - name: username in: path required: true schema: type: string - name: page in: query required: true schema: type: integer format: int64 - name: type in: query required: true schema: type: string - name: sort in: query required: true schema: type: string - name: direction in: query required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsRepository' '401': description: Unauthorized components: schemas: IoFlowGithubV0ModelsPerson: type: object required: - name - email - date properties: name: type: string email: type: string date: type: string format: date-time IoFlowGithubV0ModelsRef: type: object required: - ref - url - object properties: ref: example: refs/heads/featureA or refs/heads/main type: string url: type: string object: $ref: '#/components/schemas/IoFlowGithubV0ModelsGithubObject' IoFlowGithubV0ModelsTree: type: object required: - sha - url - truncated - tree properties: sha: type: string url: type: string truncated: type: boolean tree: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsNode' IoFlowGithubV0ModelsTreeForm: type: object required: - path - mode - type properties: path: type: string mode: description: 100644 file (blob), 100755 executable (blob), 040000 subdirectory (tree), 160000 submodule (commit) type: string type: $ref: '#/components/schemas/IoFlowGithubV0EnumsNodeType' sha: type: string content: type: string IoFlowGithubV0ModelsCommitResponse: type: object required: - sha - url - author - committer - message - tree - parents properties: sha: type: string url: type: string author: $ref: '#/components/schemas/IoFlowGithubV0ModelsPerson' committer: $ref: '#/components/schemas/IoFlowGithubV0ModelsPerson' message: type: string tree: $ref: '#/components/schemas/IoFlowGithubV0ModelsTreeSummary' parents: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsTreeSummary' IoFlowGithubV0ModelsRefUpdateForm: type: object required: - sha properties: sha: example: 940bd336248efae0f9ee5bc7b2d5c985887b16ac type: string IoFlowGithubV0ModelsCreateTreeResponse: type: object required: - sha - url - tree_result properties: sha: type: string url: type: string tree_result: $ref: '#/components/schemas/IoFlowGithubV0ModelsTree' IoFlowGithubV0ModelsError: type: object required: - resource - field - code properties: resource: example: Issue type: string field: example: title type: string code: example: missing_field type: string IoFlowGithubV0ModelsTagger: type: object required: - name - email - date properties: name: type: string email: type: string date: type: string format: date-time IoFlowGithubV0ModelsPullRequest: type: object required: - id - url - number - html_url - head properties: id: type: integer format: int64 url: type: string number: type: integer format: int64 html_url: type: string head: $ref: '#/components/schemas/IoFlowGithubV0ModelsPullRequestHead' IoFlowGithubV0ModelsTreeResult: type: object required: - path - mode - type - size - sha - url properties: path: type: string mode: description: 100644 file (blob), 100755 executable (blob), 040000 subdirectory (tree), 160000 submodule (commit) type: string type: $ref: '#/components/schemas/IoFlowGithubV0EnumsNodeType' size: type: integer format: int64 sha: type: string url: type: string IoFlowGithubV0ModelsNodeForm: type: object required: - path - mode - type - sha properties: path: type: string mode: description: 100644 file (blob), 100755 executable (blob), 040000 subdirectory (tree), 160000 submodule (commit) type: string type: $ref: '#/components/schemas/IoFlowGithubV0EnumsNodeType' sha: type: string IoFlowGithubV0ModelsBlob: type: object required: - content - encoding - url - sha - size properties: content: type: string encoding: $ref: '#/components/schemas/IoFlowGithubV0EnumsEncoding' url: type: string sha: type: string size: type: integer format: int64 IoFlowGithubV0ModelsCommitForm: type: object required: - message - tree - parents - author - committer properties: message: type: string tree: type: string parents: type: array items: type: string author: $ref: '#/components/schemas/IoFlowGithubV0ModelsPerson' committer: $ref: '#/components/schemas/IoFlowGithubV0ModelsPerson' IoFlowGithubV0ModelsTagSummary: type: object required: - name - commit properties: name: example: v0.1 type: string commit: $ref: '#/components/schemas/IoFlowGithubV0ModelsCommitSummary' IoFlowGithubV0ModelsCreateTreeForm: type: object required: - base_tree - tree properties: base_tree: type: string tree: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsTreeForm' IoFlowGithubV0ModelsHookConfig: type: object properties: url: type: string content_type: example: json or form type: string IoFlowGithubV0ModelsRepository: type: object required: - id - owner - name - full_name - private - url - html_url - default_branch properties: id: type: integer format: int64 owner: $ref: '#/components/schemas/IoFlowGithubV0ModelsUser' name: type: string full_name: type: string private: type: boolean description: type: string url: type: string html_url: type: string default_branch: type: string IoFlowGithubV0ModelsUnprocessableEntity: type: object required: - message properties: message: example: Validation Failed type: string errors: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsError' IoFlowGithubV0ModelsTag: type: object required: - tag - sha - url - message - tagger - object properties: tag: example: v0.0.1 type: string sha: example: 940bd336248efae0f9ee5bc7b2d5c985887b16ac type: string url: example: https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac type: string message: example: initial version type: string tagger: $ref: '#/components/schemas/IoFlowGithubV0ModelsTagger' object: $ref: '#/components/schemas/IoFlowGithubV0ModelsGithubObject' IoFlowGithubV0ModelsTagForm: type: object required: - tag - message - object - type - tagger properties: tag: example: v0.0.1 type: string message: type: string object: description: The SHA of the git object this is tagging example: 940bd336248efae0f9ee5bc7b2d5c985887b16ac type: string type: default: commit type: string tagger: $ref: '#/components/schemas/IoFlowGithubV0ModelsTagger' IoFlowGithubV0ModelsBlobForm: type: object required: - content - encoding properties: content: type: string encoding: $ref: '#/components/schemas/IoFlowGithubV0EnumsEncoding' IoFlowGithubV0ModelsUser: type: object required: - id - login - url - html_url - type properties: id: type: integer format: int64 login: type: string name: type: string email: type: string avatar_url: type: string gravatar_id: type: string url: type: string html_url: type: string type: $ref: '#/components/schemas/IoFlowGithubV0EnumsOwnerType' IoFlowGithubV0ModelsHook: description: See https://developer.github.com/v3/repos/hooks/#create-a-hook type: object required: - id - url - test_url - ping_url - name - events - active - config - updated_at - created_at properties: id: type: integer format: int64 url: type: string test_url: type: string ping_url: type: string name: type: string events: type: array items: $ref: '#/components/schemas/IoFlowGithubV0EnumsHookEvent' active: type: boolean config: $ref: '#/components/schemas/IoFlowGithubV0ModelsHookConfig' updated_at: type: string format: date-time created_at: type: string format: date-time IoFlowGithubV0ModelsPullRequestForm: type: object required: - title - head - base properties: title: type: string head: type: string base: type: string body: type: string IoFlowGithubV0ModelsNode: type: object required: - path - mode - type - size - sha - url properties: path: type: string mode: description: 100644 file (blob), 100755 executable (blob), 040000 subdirectory (tree), 160000 submodule (commit) type: string type: $ref: '#/components/schemas/IoFlowGithubV0EnumsNodeType' size: type: integer format: int64 sha: type: string url: type: string IoFlowGithubV0ModelsTreeSummary: type: object required: - url - sha properties: url: type: string sha: type: string IoFlowGithubV0ModelsCommit: type: object required: - sha - url - html_url - author - committer - tree - message - parents properties: sha: example: c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc type: string url: example: https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc type: string html_url: type: string author: $ref: '#/components/schemas/IoFlowGithubV0ModelsPerson' committer: $ref: '#/components/schemas/IoFlowGithubV0ModelsPerson' tree: $ref: '#/components/schemas/IoFlowGithubV0ModelsTreeSummary' message: type: string parents: type: array items: $ref: '#/components/schemas/IoFlowGithubV0ModelsCommitSummary' IoFlowGithubV0ModelsContents: type: object required: - type - encoding - size - name - path - sha - url - git_url - html_url - download_url properties: type: $ref: '#/components/schemas/IoFlowGithubV0EnumsContentsType' encoding: $ref: '#/components/schemas/IoFlowGithubV0EnumsEncoding' size: type: integer format: int64 name: type: string path: type: string content: description: If file, then present type: string sha: type: string url: type: string git_url: type: string html_url: type: string download_url: type: string IoFlowGithubV0ModelsGithubObject: type: object required: - type - sha - url properties: type: example: commit type: string sha: type: string url: type: string IoFlowGithubV0ModelsUserOrg: type: object required: - login properties: login: type: string IoFlowGithubV0ModelsBlobCreated: type: object required: - url - sha properties: url: type: string sha: type: string IoFlowGithubV0ModelsPullRequestHead: type: object required: - ref properties: ref: type: string IoFlowGithubV0ModelsHookForm: type: object required: - name - config - events - active properties: name: example: web type: string config: $ref: '#/components/schemas/IoFlowGithubV0ModelsHookConfig' events: type: array items: $ref: '#/components/schemas/IoFlowGithubV0EnumsHookEvent' active: type: boolean IoFlowGithubV0ModelsUserEmail: type: object required: - email - verified - primary properties: email: type: string verified: type: boolean primary: type: boolean IoFlowGithubV0ModelsRefForm: type: object required: - ref - sha properties: ref: example: refs/heads/featureA or refs/heads/main type: string sha: example: 940bd336248efae0f9ee5bc7b2d5c985887b16ac type: string IoFlowGithubV0ModelsCommitSummary: type: object required: - sha - url properties: sha: example: c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc type: string url: example: https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc type: string IoFlowGithubV0EnumsNodeType: type: string enum: - blob - tree - commit IoFlowGithubV0EnumsContentsType: type: string enum: - file - dir - symlink - submodule IoFlowGithubV0EnumsVisibility: type: string enum: - all - public - private IoFlowGithubV0EnumsHookEvent: type: string enum: - push - pull_request IoFlowGithubV0EnumsOwnerType: type: string enum: - User IoFlowGithubV0EnumsEncoding: type: string enum: - base64 - utf-8