{"files":{"SKILL.md":"---\nname: github-v3-rest-api\ndescription: \"GitHub v3 REST API skill. Use when working with GitHub v3 REST for root, admin, app. Covers 516 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# GitHub v3 REST API\nAPI version: 1.1.4\n\n## Auth\nApiKey access_token in path\n\n## Base URL\n{protocol}://{hostname}/api/v3\n\n## Setup\n1. Set your API key in the appropriate header\n2. GET / -- github api root\n3. POST /admin/hooks -- create first hook\n\n## Endpoints\n516 endpoints across 35 groups. See references/api-spec.lap for full details.\n\n### Root\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | / | GitHub API Root |\n\n### Admin\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /admin/hooks | List global webhooks |\n| POST | /admin/hooks | Create a global webhook |\n| GET | /admin/hooks/{hook_id} | Get a global webhook |\n| PATCH | /admin/hooks/{hook_id} | Update a global webhook |\n| DELETE | /admin/hooks/{hook_id} | Delete a global webhook |\n| POST | /admin/hooks/{hook_id}/pings | Ping a global webhook |\n| GET | /admin/keys | List public keys |\n| DELETE | /admin/keys/{key_ids} | Delete a public key |\n| PATCH | /admin/ldap/teams/{team_id}/mapping | Update LDAP mapping for a team |\n| POST | /admin/ldap/teams/{team_id}/sync | Sync LDAP mapping for a team |\n| PATCH | /admin/ldap/users/{username}/mapping | Update LDAP mapping for a user |\n| POST | /admin/ldap/users/{username}/sync | Sync LDAP mapping for a user |\n| POST | /admin/organizations | Create an organization |\n| PATCH | /admin/organizations/{org} | Update an organization name |\n| GET | /admin/pre-receive-environments | List pre-receive environments |\n| POST | /admin/pre-receive-environments | Create a pre-receive environment |\n| GET | /admin/pre-receive-environments/{pre_receive_environment_id} | Get a pre-receive environment |\n| PATCH | /admin/pre-receive-environments/{pre_receive_environment_id} | Update a pre-receive environment |\n| DELETE | /admin/pre-receive-environments/{pre_receive_environment_id} | Delete a pre-receive environment |\n| POST | /admin/pre-receive-environments/{pre_receive_environment_id}/downloads | Start a pre-receive environment download |\n| GET | /admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest | Get the download status for a pre-receive environment |\n| GET | /admin/pre-receive-hooks | List pre-receive hooks |\n| POST | /admin/pre-receive-hooks | Create a pre-receive hook |\n| GET | /admin/pre-receive-hooks/{pre_receive_hook_id} | Get a pre-receive hook |\n| PATCH | /admin/pre-receive-hooks/{pre_receive_hook_id} | Update a pre-receive hook |\n| DELETE | /admin/pre-receive-hooks/{pre_receive_hook_id} | Delete a pre-receive hook |\n| GET | /admin/tokens | List personal access tokens |\n| DELETE | /admin/tokens/{token_id} | Delete a personal access token |\n| POST | /admin/users | Create a user |\n| PATCH | /admin/users/{username} | Update the username for a user |\n| DELETE | /admin/users/{username} | Delete a user |\n| POST | /admin/users/{username}/authorizations | Create an impersonation OAuth token |\n| DELETE | /admin/users/{username}/authorizations | Delete an impersonation OAuth token |\n\n### App\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /app | Get the authenticated app |\n| GET | /app/installations | List installations for the authenticated app |\n| GET | /app/installations/{installation_id} | Get an installation for the authenticated app |\n| DELETE | /app/installations/{installation_id} | Delete an installation for the authenticated app |\n| POST | /app/installations/{installation_id}/access_tokens | Create an installation access token for an app |\n\n### App-manifests\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /app-manifests/{code}/conversions | Create a GitHub App from a manifest |\n\n### Applications\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /applications/grants | List your grants |\n| GET | /applications/grants/{grant_id} | Get a single grant |\n| DELETE | /applications/grants/{grant_id} | Delete a grant |\n| DELETE | /applications/{client_id}/grants/{access_token} | Revoke a grant for an application |\n| GET | /applications/{client_id}/tokens/{access_token} | Check an authorization |\n| POST | /applications/{client_id}/tokens/{access_token} | Reset an authorization |\n| DELETE | /applications/{client_id}/tokens/{access_token} | Revoke an authorization for an application |\n\n### Apps\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /apps/{app_slug} | Get an app |\n\n### Authorizations\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /authorizations | List your authorizations |\n| POST | /authorizations | Create a new authorization |\n| PUT | /authorizations/clients/{client_id} | Get-or-create an authorization for a specific app |\n| PUT | /authorizations/clients/{client_id}/{fingerprint} | Get-or-create an authorization for a specific app and fingerprint |\n| GET | /authorizations/{authorization_id} | Get a single authorization |\n| PATCH | /authorizations/{authorization_id} | Update an existing authorization |\n| DELETE | /authorizations/{authorization_id} | Delete an authorization |\n\n### Codes_of_conduct\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /codes_of_conduct | Get all codes of conduct |\n| GET | /codes_of_conduct/{key} | Get a code of conduct |\n\n### Emojis\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /emojis | Get emojis |\n\n### Enterprise\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /enterprise/settings/license | Get license information |\n| GET | /enterprise/stats/all | Get all statistics |\n| GET | /enterprise/stats/comments | Get comment statistics |\n| GET | /enterprise/stats/gists | Get gist statistics |\n| GET | /enterprise/stats/hooks | Get hooks statistics |\n| GET | /enterprise/stats/issues | Get issue statistics |\n| GET | /enterprise/stats/milestones | Get milestone statistics |\n| GET | /enterprise/stats/orgs | Get organization statistics |\n| GET | /enterprise/stats/pages | Get pages statistics |\n| GET | /enterprise/stats/pulls | Get pull request statistics |\n| GET | /enterprise/stats/repos | Get repository statistics |\n| GET | /enterprise/stats/users | Get users statistics |\n\n### Events\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /events | List public events |\n\n### Feeds\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /feeds | Get feeds |\n\n### Gists\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /gists | List gists for the authenticated user |\n| POST | /gists | Create a gist |\n| GET | /gists/public | List public gists |\n| GET | /gists/starred | List starred gists |\n| GET | /gists/{gist_id} | Get a gist |\n| PATCH | /gists/{gist_id} | Update a gist |\n| DELETE | /gists/{gist_id} | Delete a gist |\n| GET | /gists/{gist_id}/comments | List gist comments |\n| POST | /gists/{gist_id}/comments | Create a gist comment |\n| GET | /gists/{gist_id}/comments/{comment_id} | Get a gist comment |\n| PATCH | /gists/{gist_id}/comments/{comment_id} | Update a gist comment |\n| DELETE | /gists/{gist_id}/comments/{comment_id} | Delete a gist comment |\n| GET | /gists/{gist_id}/commits | List gist commits |\n| GET | /gists/{gist_id}/forks | List gist forks |\n| POST | /gists/{gist_id}/forks | Fork a gist |\n| GET | /gists/{gist_id}/star | Check if a gist is starred |\n| PUT | /gists/{gist_id}/star | Star a gist |\n| DELETE | /gists/{gist_id}/star | Unstar a gist |\n| GET | /gists/{gist_id}/{sha} | Get a gist revision |\n\n### Gitignore\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /gitignore/templates | Get all gitignore templates |\n| GET | /gitignore/templates/{name} | Get a gitignore template |\n\n### Installation\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /installation/repositories | List repositories accessible to the app installation |\n\n### Issues\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /issues | List issues assigned to the authenticated user |\n\n### Licenses\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /licenses | Get all commonly used licenses |\n| GET | /licenses/{license} | Get a license |\n\n### Markdown\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /markdown | Render a Markdown document |\n| POST | /markdown/raw | Render a Markdown document in raw mode |\n\n### Meta\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /meta | Get GitHub Enterprise Server meta information |\n\n### Networks\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /networks/{owner}/{repo}/events | List public events for a network of repositories |\n\n### Notifications\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /notifications | List notifications for the authenticated user |\n| PUT | /notifications | Mark notifications as read |\n| GET | /notifications/threads/{thread_id} | Get a thread |\n| PATCH | /notifications/threads/{thread_id} | Mark a thread as read |\n| GET | /notifications/threads/{thread_id}/subscription | Get a thread subscription for the authenticated user |\n| PUT | /notifications/threads/{thread_id}/subscription | Set a thread subscription |\n| DELETE | /notifications/threads/{thread_id}/subscription | Delete a thread subscription |\n\n### Octocat\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /octocat | Get Octocat |\n\n### Organizations\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /organizations | List organizations |\n\n### Orgs\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /orgs/{org} | Get an organization |\n| PATCH | /orgs/{org} | Update an organization |\n| GET | /orgs/{org}/events | List public organization events |\n| GET | /orgs/{org}/hooks | List organization webhooks |\n| POST | /orgs/{org}/hooks | Create an organization webhook |\n| GET | /orgs/{org}/hooks/{hook_id} | Get an organization webhook |\n| PATCH | /orgs/{org}/hooks/{hook_id} | Update an organization webhook |\n| DELETE | /orgs/{org}/hooks/{hook_id} | Delete an organization webhook |\n| POST | /orgs/{org}/hooks/{hook_id}/pings | Ping an organization webhook |\n| GET | /orgs/{org}/installation | Get an organization installation for the authenticated app |\n| GET | /orgs/{org}/installations | List app installations for an organization |\n| GET | /orgs/{org}/issues | List organization issues assigned to the authenticated user |\n| GET | /orgs/{org}/members | List organization members |\n| GET | /orgs/{org}/members/{username} | Check organization membership for a user |\n| DELETE | /orgs/{org}/members/{username} | Remove an organization member |\n| GET | /orgs/{org}/memberships/{username} | Get organization membership for a user |\n| PUT | /orgs/{org}/memberships/{username} | Set organization membership for a user |\n| DELETE | /orgs/{org}/memberships/{username} | Remove organization membership for a user |\n| GET | /orgs/{org}/outside_collaborators | List outside collaborators for an organization |\n| PUT | /orgs/{org}/outside_collaborators/{username} | Convert an organization member to outside collaborator |\n| DELETE | /orgs/{org}/outside_collaborators/{username} | Remove outside collaborator from an organization |\n| GET | /orgs/{org}/pre-receive-hooks | List pre-receive hooks for an organization |\n| GET | /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id} | Get a pre-receive hook for an organization |\n| PATCH | /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id} | Update pre-receive hook enforcement for an organization |\n| DELETE | /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id} | Remove pre-receive hook enforcement for an organization |\n| GET | /orgs/{org}/projects | List organization projects |\n| POST | /orgs/{org}/projects | Create an organization project |\n| GET | /orgs/{org}/public_members | List public organization members |\n| GET | /orgs/{org}/public_members/{username} | Check public organization membership for a user |\n| PUT | /orgs/{org}/public_members/{username} | Set public organization membership for the authenticated user |\n| DELETE | /orgs/{org}/public_members/{username} | Remove public organization membership for the authenticated user |\n| GET | /orgs/{org}/repos | List organization repositories |\n| POST | /orgs/{org}/repos | Create an organization repository |\n| GET | /orgs/{org}/teams | List teams |\n| POST | /orgs/{org}/teams | Create a team |\n| GET | /orgs/{org}/teams/{team_slug} | Get a team by name |\n\n### Projects\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /projects/columns/cards/{card_id} | Get a project card |\n| PATCH | /projects/columns/cards/{card_id} | Update an existing project card |\n| DELETE | /projects/columns/cards/{card_id} | Delete a project card |\n| POST | /projects/columns/cards/{card_id}/moves | Move a project card |\n| GET | /projects/columns/{column_id} | Get a project column |\n| PATCH | /projects/columns/{column_id} | Update an existing project column |\n| DELETE | /projects/columns/{column_id} | Delete a project column |\n| GET | /projects/columns/{column_id}/cards | List project cards |\n| POST | /projects/columns/{column_id}/cards | Create a project card |\n| POST | /projects/columns/{column_id}/moves | Move a project column |\n| GET | /projects/{project_id} | Get a project |\n| PATCH | /projects/{project_id} | Update a project |\n| DELETE | /projects/{project_id} | Delete a project |\n| GET | /projects/{project_id}/collaborators | List project collaborators |\n| PUT | /projects/{project_id}/collaborators/{username} | Add project collaborator |\n| DELETE | /projects/{project_id}/collaborators/{username} | Remove user as a collaborator |\n| GET | /projects/{project_id}/collaborators/{username}/permission | Get project permission for a user |\n| GET | /projects/{project_id}/columns | List project columns |\n| POST | /projects/{project_id}/columns | Create a project column |\n\n### Rate_limit\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /rate_limit | Get rate limit status for the authenticated user |\n\n### Reactions\n| Method | Path | Description |\n|--------|------|-------------|\n| DELETE | /reactions/{reaction_id} | Delete a reaction |\n\n### Repos\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /repos/{owner}/{repo} | Get a repository |\n| PATCH | /repos/{owner}/{repo} | Update a repository |\n| DELETE | /repos/{owner}/{repo} | Delete a repository |\n| GET | /repos/{owner}/{repo}/assignees | List assignees |\n| GET | /repos/{owner}/{repo}/assignees/{assignee} | Check if a user can be assigned |\n| GET | /repos/{owner}/{repo}/branches | List branches |\n| GET | /repos/{owner}/{repo}/branches/{branch} | Get a branch |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection | Get branch protection |\n| PUT | /repos/{owner}/{repo}/branches/{branch}/protection | Update branch protection |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection | Delete branch protection |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins | Get admin branch protection |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins | Set admin branch protection |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins | Delete admin branch protection |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews | Get pull request review protection |\n| PATCH | /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews | Update pull request review protection |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews | Delete pull request review protection |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures | Get commit signature protection |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures | Create commit signature protection |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures | Delete commit signature protection |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks | Get status checks protection |\n| PATCH | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks | Update status check protection |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks | Remove status check protection |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts | Get all status check contexts |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts | Add status check contexts |\n| PUT | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts | Set status check contexts |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts | Remove status check contexts |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions | Get access restrictions |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions | Delete access restrictions |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps | Get apps with access to the protected branch |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps | Add app access restrictions |\n| PUT | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps | Set app access restrictions |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps | Remove app access restrictions |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams | Get teams with access to the protected branch |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams | Add team access restrictions |\n| PUT | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams | Set team access restrictions |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams | Remove team access restrictions |\n| GET | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users | Get users with access to the protected branch |\n| POST | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users | Add user access restrictions |\n| PUT | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users | Set user access restrictions |\n| DELETE | /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users | Remove user access restrictions |\n| POST | /repos/{owner}/{repo}/check-runs | Create a check run |\n| GET | /repos/{owner}/{repo}/check-runs/{check_run_id} | Get a check run |\n| PATCH | /repos/{owner}/{repo}/check-runs/{check_run_id} | Update a check run |\n| GET | /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations | List check run annotations |\n| POST | /repos/{owner}/{repo}/check-suites | Create a check suite |\n| PATCH | /repos/{owner}/{repo}/check-suites/preferences | Update repository preferences for check suites |\n| GET | /repos/{owner}/{repo}/check-suites/{check_suite_id} | Get a check suite |\n| GET | /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs | List check runs in a check suite |\n| POST | /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest | Rerequest a check suite |\n| GET | /repos/{owner}/{repo}/collaborators | List repository collaborators |\n| GET | /repos/{owner}/{repo}/collaborators/{username} | Check if a user is a repository collaborator |\n| PUT | /repos/{owner}/{repo}/collaborators/{username} | Add a repository collaborator |\n| DELETE | /repos/{owner}/{repo}/collaborators/{username} | Remove a repository collaborator |\n| GET | /repos/{owner}/{repo}/collaborators/{username}/permission | Get repository permissions for a user |\n| GET | /repos/{owner}/{repo}/comments | List commit comments for a repository |\n| GET | /repos/{owner}/{repo}/comments/{comment_id} | Get a commit comment |\n| PATCH | /repos/{owner}/{repo}/comments/{comment_id} | Update a commit comment |\n| DELETE | /repos/{owner}/{repo}/comments/{comment_id} | Delete a commit comment |\n| GET | /repos/{owner}/{repo}/comments/{comment_id}/reactions | List reactions for a commit comment |\n| POST | /repos/{owner}/{repo}/comments/{comment_id}/reactions | Create reaction for a commit comment |\n| GET | /repos/{owner}/{repo}/commits | List commits |\n| GET | /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head | List branches for HEAD commit |\n| GET | /repos/{owner}/{repo}/commits/{commit_sha}/comments | List commit comments |\n| POST | /repos/{owner}/{repo}/commits/{commit_sha}/comments | Create a commit comment |\n| GET | /repos/{owner}/{repo}/commits/{commit_sha}/pulls | List pull requests associated with a commit |\n| GET | /repos/{owner}/{repo}/commits/{ref} | Get a commit |\n| GET | /repos/{owner}/{repo}/commits/{ref}/check-runs | List check runs for a Git reference |\n| GET | /repos/{owner}/{repo}/commits/{ref}/check-suites | List check suites for a Git reference |\n| GET | /repos/{owner}/{repo}/commits/{ref}/status | Get the combined status for a specific reference |\n| GET | /repos/{owner}/{repo}/commits/{ref}/statuses | List commit statuses for a reference |\n| GET | /repos/{owner}/{repo}/compare/{basehead} | Compare two commits |\n| POST | /repos/{owner}/{repo}/content_references/{content_reference_id}/attachments | Create a content attachment |\n| GET | /repos/{owner}/{repo}/contents/{path} | Get repository content |\n| PUT | /repos/{owner}/{repo}/contents/{path} | Create or update file contents |\n| DELETE | /repos/{owner}/{repo}/contents/{path} | Delete a file |\n| GET | /repos/{owner}/{repo}/contributors | List repository contributors |\n| GET | /repos/{owner}/{repo}/deployments | List deployments |\n| POST | /repos/{owner}/{repo}/deployments | Create a deployment |\n| GET | /repos/{owner}/{repo}/deployments/{deployment_id} | Get a deployment |\n| GET | /repos/{owner}/{repo}/deployments/{deployment_id}/statuses | List deployment statuses |\n| POST | /repos/{owner}/{repo}/deployments/{deployment_id}/statuses | Create a deployment status |\n| GET | /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id} | Get a deployment status |\n| GET | /repos/{owner}/{repo}/events | List repository events |\n| GET | /repos/{owner}/{repo}/forks | List forks |\n| POST | /repos/{owner}/{repo}/forks | Create a fork |\n| POST | /repos/{owner}/{repo}/git/blobs | Create a blob |\n| GET | /repos/{owner}/{repo}/git/blobs/{file_sha} | Get a blob |\n| POST | /repos/{owner}/{repo}/git/commits | Create a commit |\n| GET | /repos/{owner}/{repo}/git/commits/{commit_sha} | Get a commit |\n| GET | /repos/{owner}/{repo}/git/matching-refs/{ref} | List matching references |\n| GET | /repos/{owner}/{repo}/git/ref/{ref} | Get a reference |\n| POST | /repos/{owner}/{repo}/git/refs | Create a reference |\n| PATCH | /repos/{owner}/{repo}/git/refs/{ref} | Update a reference |\n| DELETE | /repos/{owner}/{repo}/git/refs/{ref} | Delete a reference |\n| POST | /repos/{owner}/{repo}/git/tags | Create a tag object |\n| GET | /repos/{owner}/{repo}/git/tags/{tag_sha} | Get a tag |\n| POST | /repos/{owner}/{repo}/git/trees | Create a tree |\n| GET | /repos/{owner}/{repo}/git/trees/{tree_sha} | Get a tree |\n| GET | /repos/{owner}/{repo}/hooks | List repository webhooks |\n| POST | /repos/{owner}/{repo}/hooks | Create a repository webhook |\n| GET | /repos/{owner}/{repo}/hooks/{hook_id} | Get a repository webhook |\n| PATCH | /repos/{owner}/{repo}/hooks/{hook_id} | Update a repository webhook |\n| DELETE | /repos/{owner}/{repo}/hooks/{hook_id} | Delete a repository webhook |\n| POST | /repos/{owner}/{repo}/hooks/{hook_id}/pings | Ping a repository webhook |\n| POST | /repos/{owner}/{repo}/hooks/{hook_id}/tests | Test the push repository webhook |\n| GET | /repos/{owner}/{repo}/installation | Get a repository installation for the authenticated app |\n| GET | /repos/{owner}/{repo}/invitations | List repository invitations |\n| PATCH | /repos/{owner}/{repo}/invitations/{invitation_id} | Update a repository invitation |\n| DELETE | /repos/{owner}/{repo}/invitations/{invitation_id} | Delete a repository invitation |\n| GET | /repos/{owner}/{repo}/issues | List repository issues |\n| POST | /repos/{owner}/{repo}/issues | Create an issue |\n| GET | /repos/{owner}/{repo}/issues/comments | List issue comments for a repository |\n| GET | /repos/{owner}/{repo}/issues/comments/{comment_id} | Get an issue comment |\n| PATCH | /repos/{owner}/{repo}/issues/comments/{comment_id} | Update an issue comment |\n| DELETE | /repos/{owner}/{repo}/issues/comments/{comment_id} | Delete an issue comment |\n| GET | /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions | List reactions for an issue comment |\n| POST | /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions | Create reaction for an issue comment |\n| GET | /repos/{owner}/{repo}/issues/events | List issue events for a repository |\n| GET | /repos/{owner}/{repo}/issues/events/{event_id} | Get an issue event |\n| GET | /repos/{owner}/{repo}/issues/{issue_number} | Get an issue |\n| PATCH | /repos/{owner}/{repo}/issues/{issue_number} | Update an issue |\n| POST | /repos/{owner}/{repo}/issues/{issue_number}/assignees | Add assignees to an issue |\n| DELETE | /repos/{owner}/{repo}/issues/{issue_number}/assignees | Remove assignees from an issue |\n| GET | /repos/{owner}/{repo}/issues/{issue_number}/comments | List issue comments |\n| POST | /repos/{owner}/{repo}/issues/{issue_number}/comments | Create an issue comment |\n| GET | /repos/{owner}/{repo}/issues/{issue_number}/events | List issue events |\n| GET | /repos/{owner}/{repo}/issues/{issue_number}/labels | List labels for an issue |\n| POST | /repos/{owner}/{repo}/issues/{issue_number}/labels | Add labels to an issue |\n| PUT | /repos/{owner}/{repo}/issues/{issue_number}/labels | Set labels for an issue |\n| DELETE | /repos/{owner}/{repo}/issues/{issue_number}/labels | Remove all labels from an issue |\n| DELETE | /repos/{owner}/{repo}/issues/{issue_number}/labels/{name} | Remove a label from an issue |\n| PUT | /repos/{owner}/{repo}/issues/{issue_number}/lock | Lock an issue |\n| DELETE | /repos/{owner}/{repo}/issues/{issue_number}/lock | Unlock an issue |\n| GET | /repos/{owner}/{repo}/issues/{issue_number}/reactions | List reactions for an issue |\n| POST | /repos/{owner}/{repo}/issues/{issue_number}/reactions | Create reaction for an issue |\n| GET | /repos/{owner}/{repo}/issues/{issue_number}/timeline | List timeline events for an issue |\n| GET | /repos/{owner}/{repo}/keys | List deploy keys |\n| POST | /repos/{owner}/{repo}/keys | Create a deploy key |\n| GET | /repos/{owner}/{repo}/keys/{key_id} | Get a deploy key |\n| DELETE | /repos/{owner}/{repo}/keys/{key_id} | Delete a deploy key |\n| GET | /repos/{owner}/{repo}/labels | List labels for a repository |\n| POST | /repos/{owner}/{repo}/labels | Create a label |\n| GET | /repos/{owner}/{repo}/labels/{name} | Get a label |\n| PATCH | /repos/{owner}/{repo}/labels/{name} | Update a label |\n| DELETE | /repos/{owner}/{repo}/labels/{name} | Delete a label |\n| GET | /repos/{owner}/{repo}/languages | List repository languages |\n| GET | /repos/{owner}/{repo}/license | Get the license for a repository |\n| POST | /repos/{owner}/{repo}/merges | Merge a branch |\n| GET | /repos/{owner}/{repo}/milestones | List milestones |\n| POST | /repos/{owner}/{repo}/milestones | Create a milestone |\n| GET | /repos/{owner}/{repo}/milestones/{milestone_number} | Get a milestone |\n| PATCH | /repos/{owner}/{repo}/milestones/{milestone_number} | Update a milestone |\n| DELETE | /repos/{owner}/{repo}/milestones/{milestone_number} | Delete a milestone |\n| GET | /repos/{owner}/{repo}/milestones/{milestone_number}/labels | List labels for issues in a milestone |\n| GET | /repos/{owner}/{repo}/notifications | List repository notifications for the authenticated user |\n| PUT | /repos/{owner}/{repo}/notifications | Mark repository notifications as read |\n| GET | /repos/{owner}/{repo}/pages | Get a GitHub Enterprise Server Pages site |\n| POST | /repos/{owner}/{repo}/pages | Create a GitHub Pages site |\n| PUT | /repos/{owner}/{repo}/pages | Update information about a GitHub Pages site |\n| DELETE | /repos/{owner}/{repo}/pages | Delete a GitHub Enterprise Server Pages site |\n| GET | /repos/{owner}/{repo}/pages/builds | List GitHub Enterprise Server Pages builds |\n| POST | /repos/{owner}/{repo}/pages/builds | Request a GitHub Enterprise Server Pages build |\n| GET | /repos/{owner}/{repo}/pages/builds/latest | Get latest Pages build |\n| GET | /repos/{owner}/{repo}/pages/builds/{build_id} | Get GitHub Enterprise Server Pages build |\n| GET | /repos/{owner}/{repo}/pre-receive-hooks | List pre-receive hooks for a repository |\n| GET | /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id} | Get a pre-receive hook for a repository |\n| PATCH | /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id} | Update pre-receive hook enforcement for a repository |\n| DELETE | /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id} | Remove pre-receive hook enforcement for a repository |\n| GET | /repos/{owner}/{repo}/projects | List repository projects |\n| POST | /repos/{owner}/{repo}/projects | Create a repository project |\n| GET | /repos/{owner}/{repo}/pulls | List pull requests |\n| POST | /repos/{owner}/{repo}/pulls | Create a pull request |\n| GET | /repos/{owner}/{repo}/pulls/comments | List review comments in a repository |\n| GET | /repos/{owner}/{repo}/pulls/comments/{comment_id} | Get a review comment for a pull request |\n| PATCH | /repos/{owner}/{repo}/pulls/comments/{comment_id} | Update a review comment for a pull request |\n| DELETE | /repos/{owner}/{repo}/pulls/comments/{comment_id} | Delete a review comment for a pull request |\n| GET | /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions | List reactions for a pull request review comment |\n| POST | /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions | Create reaction for a pull request review comment |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number} | Get a pull request |\n| PATCH | /repos/{owner}/{repo}/pulls/{pull_number} | Update a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/comments | List review comments on a pull request |\n| POST | /repos/{owner}/{repo}/pulls/{pull_number}/comments | Create a review comment for a pull request (alternative) |\n| POST | /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies | Create a reply for a review comment |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/commits | List commits on a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/files | List pull requests files |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/merge | Check if a pull request has been merged |\n| PUT | /repos/{owner}/{repo}/pulls/{pull_number}/merge | Merge a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers | List requested reviewers for a pull request |\n| POST | /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers | Request reviewers for a pull request |\n| DELETE | /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers | Remove requested reviewers from a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/reviews | List reviews for a pull request |\n| POST | /repos/{owner}/{repo}/pulls/{pull_number}/reviews | Create a review for a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} | Get a review for a pull request |\n| PUT | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} | Update a review for a pull request |\n| DELETE | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} | Delete a pending review for a pull request |\n| GET | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments | List comments for a pull request review |\n| PUT | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals | Dismiss a review for a pull request |\n| POST | /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events | Submit a review for a pull request |\n| PUT | /repos/{owner}/{repo}/pulls/{pull_number}/update-branch | Update a pull request branch |\n| GET | /repos/{owner}/{repo}/readme | Get a repository README |\n| GET | /repos/{owner}/{repo}/readme/{dir} | Get a repository README for a directory |\n| GET | /repos/{owner}/{repo}/releases | List releases |\n| POST | /repos/{owner}/{repo}/releases | Create a release |\n| GET | /repos/{owner}/{repo}/releases/assets/{asset_id} | Get a release asset |\n| PATCH | /repos/{owner}/{repo}/releases/assets/{asset_id} | Update a release asset |\n| DELETE | /repos/{owner}/{repo}/releases/assets/{asset_id} | Delete a release asset |\n| GET | /repos/{owner}/{repo}/releases/latest | Get the latest release |\n| GET | /repos/{owner}/{repo}/releases/tags/{tag} | Get a release by tag name |\n| GET | /repos/{owner}/{repo}/releases/{release_id} | Get a release |\n| PATCH | /repos/{owner}/{repo}/releases/{release_id} | Update a release |\n| DELETE | /repos/{owner}/{repo}/releases/{release_id} | Delete a release |\n| GET | /repos/{owner}/{repo}/releases/{release_id}/assets | List release assets |\n| POST | /repos/{owner}/{repo}/releases/{release_id}/assets | Upload a release asset |\n| GET | /repos/{owner}/{repo}/stargazers | List stargazers |\n| GET | /repos/{owner}/{repo}/stats/code_frequency | Get the weekly commit activity |\n| GET | /repos/{owner}/{repo}/stats/commit_activity | Get the last year of commit activity |\n| GET | /repos/{owner}/{repo}/stats/contributors | Get all contributor commit activity |\n| GET | /repos/{owner}/{repo}/stats/participation | Get the weekly commit count |\n| GET | /repos/{owner}/{repo}/stats/punch_card | Get the hourly commit count for each day |\n| POST | /repos/{owner}/{repo}/statuses/{sha} | Create a commit status |\n| GET | /repos/{owner}/{repo}/subscribers | List watchers |\n| GET | /repos/{owner}/{repo}/subscription | Get a repository subscription |\n| PUT | /repos/{owner}/{repo}/subscription | Set a repository subscription |\n| DELETE | /repos/{owner}/{repo}/subscription | Delete a repository subscription |\n| GET | /repos/{owner}/{repo}/tags | List repository tags |\n| GET | /repos/{owner}/{repo}/tarball/{ref} | Download a repository archive (tar) |\n| GET | /repos/{owner}/{repo}/teams | List repository teams |\n| GET | /repos/{owner}/{repo}/topics | Get all repository topics |\n| PUT | /repos/{owner}/{repo}/topics | Replace all repository topics |\n| POST | /repos/{owner}/{repo}/transfer | Transfer a repository |\n| GET | /repos/{owner}/{repo}/zipball/{ref} | Download a repository archive (zip) |\n| POST | /repos/{template_owner}/{template_repo}/generate | Create a repository using a template |\n\n### Repositories\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /repositories | List public repositories |\n\n### Search\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /search/code | Search code |\n| GET | /search/commits | Search commits |\n| GET | /search/issues | Search issues and pull requests |\n| GET | /search/labels | Search labels |\n| GET | /search/repositories | Search repositories |\n| GET | /search/topics | Search topics |\n| GET | /search/users | Search users |\n\n### Setup\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /setup/api/configcheck | Get the configuration status |\n| POST | /setup/api/configure | Start a configuration process |\n| GET | /setup/api/maintenance | Get the maintenance status |\n| POST | /setup/api/maintenance | Enable or disable maintenance mode |\n| GET | /setup/api/settings | Get settings |\n| PUT | /setup/api/settings | Set settings |\n| GET | /setup/api/settings/authorized-keys | Get all authorized SSH keys |\n| POST | /setup/api/settings/authorized-keys | Add an authorized SSH key |\n| DELETE | /setup/api/settings/authorized-keys | Remove an authorized SSH key |\n| POST | /setup/api/start | Create a GitHub license |\n| POST | /setup/api/upgrade | Upgrade a license |\n\n### Teams\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /teams/{team_id} | Get a team |\n| PATCH | /teams/{team_id} | Update a team |\n| DELETE | /teams/{team_id} | Delete a team |\n| GET | /teams/{team_id}/discussions | List discussions |\n| POST | /teams/{team_id}/discussions | Create a discussion |\n| GET | /teams/{team_id}/discussions/{discussion_number} | Get a discussion |\n| PATCH | /teams/{team_id}/discussions/{discussion_number} | Update a discussion |\n| DELETE | /teams/{team_id}/discussions/{discussion_number} | Delete a discussion |\n| GET | /teams/{team_id}/discussions/{discussion_number}/comments | List discussion comments |\n| POST | /teams/{team_id}/discussions/{discussion_number}/comments | Create a discussion comment |\n| GET | /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number} | Get a discussion comment |\n| PATCH | /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number} | Update a discussion comment |\n| DELETE | /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number} | Delete a discussion comment |\n| GET | /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions | List reactions for a team discussion comment |\n| POST | /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions | Create reaction for a team discussion comment |\n| GET | /teams/{team_id}/discussions/{discussion_number}/reactions | List reactions for a team discussion |\n| POST | /teams/{team_id}/discussions/{discussion_number}/reactions | Create reaction for a team discussion |\n| GET | /teams/{team_id}/members | List team members |\n| GET | /teams/{team_id}/members/{username} | Get team member (Legacy) |\n| PUT | /teams/{team_id}/members/{username} | Add team member (Legacy) |\n| DELETE | /teams/{team_id}/members/{username} | Remove team member (Legacy) |\n| GET | /teams/{team_id}/memberships/{username} | Get team membership for a user |\n| PUT | /teams/{team_id}/memberships/{username} | Add or update team membership for a user |\n| DELETE | /teams/{team_id}/memberships/{username} | Remove team membership for a user |\n| GET | /teams/{team_id}/projects | List team projects |\n| GET | /teams/{team_id}/projects/{project_id} | Check team permissions for a project |\n| PUT | /teams/{team_id}/projects/{project_id} | Add or update team project permissions |\n| DELETE | /teams/{team_id}/projects/{project_id} | Remove a project from a team |\n| GET | /teams/{team_id}/repos | List team repositories |\n| GET | /teams/{team_id}/repos/{owner}/{repo} | Check team permissions for a repository |\n| PUT | /teams/{team_id}/repos/{owner}/{repo} | Add or update team repository permissions |\n| DELETE | /teams/{team_id}/repos/{owner}/{repo} | Remove a repository from a team |\n| GET | /teams/{team_id}/teams | List child teams |\n\n### User\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /user | Get the authenticated user |\n| PATCH | /user | Update the authenticated user |\n| GET | /user/emails | List email addresses for the authenticated user |\n| POST | /user/emails | Add an email address for the authenticated user |\n| DELETE | /user/emails | Delete an email address for the authenticated user |\n| GET | /user/followers | List followers of the authenticated user |\n| GET | /user/following | List the people the authenticated user follows |\n| GET | /user/following/{username} | Check if a person is followed by the authenticated user |\n| PUT | /user/following/{username} | Follow a user |\n| DELETE | /user/following/{username} | Unfollow a user |\n| GET | /user/gpg_keys | List GPG keys for the authenticated user |\n| POST | /user/gpg_keys | Create a GPG key for the authenticated user |\n| GET | /user/gpg_keys/{gpg_key_id} | Get a GPG key for the authenticated user |\n| DELETE | /user/gpg_keys/{gpg_key_id} | Delete a GPG key for the authenticated user |\n| GET | /user/installations | List app installations accessible to the user access token |\n| GET | /user/installations/{installation_id}/repositories | List repositories accessible to the user access token |\n| PUT | /user/installations/{installation_id}/repositories/{repository_id} | Add a repository to an app installation |\n| DELETE | /user/installations/{installation_id}/repositories/{repository_id} | Remove a repository from an app installation |\n| GET | /user/issues | List user account issues assigned to the authenticated user |\n| GET | /user/keys | List public SSH keys for the authenticated user |\n| POST | /user/keys | Create a public SSH key for the authenticated user |\n| GET | /user/keys/{key_id} | Get a public SSH key for the authenticated user |\n| DELETE | /user/keys/{key_id} | Delete a public SSH key for the authenticated user |\n| GET | /user/memberships/orgs | List organization memberships for the authenticated user |\n| GET | /user/memberships/orgs/{org} | Get an organization membership for the authenticated user |\n| PATCH | /user/memberships/orgs/{org} | Update an organization membership for the authenticated user |\n| GET | /user/orgs | List organizations for the authenticated user |\n| POST | /user/projects | Create a user project |\n| GET | /user/public_emails | List public email addresses for the authenticated user |\n| GET | /user/repos | List repositories for the authenticated user |\n| POST | /user/repos | Create a repository for the authenticated user |\n| GET | /user/repository_invitations | List repository invitations for the authenticated user |\n| PATCH | /user/repository_invitations/{invitation_id} | Accept a repository invitation |\n| DELETE | /user/repository_invitations/{invitation_id} | Decline a repository invitation |\n| GET | /user/starred | List repositories starred by the authenticated user |\n| GET | /user/starred/{owner}/{repo} | Check if a repository is starred by the authenticated user |\n| PUT | /user/starred/{owner}/{repo} | Star a repository for the authenticated user |\n| DELETE | /user/starred/{owner}/{repo} | Unstar a repository for the authenticated user |\n| GET | /user/subscriptions | List repositories watched by the authenticated user |\n| GET | /user/teams | List teams for the authenticated user |\n\n### Users\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /users | List users |\n| GET | /users/{username} | Get a user |\n| GET | /users/{username}/events | List events for the authenticated user |\n| GET | /users/{username}/events/orgs/{org} | List organization events for the authenticated user |\n| GET | /users/{username}/events/public | List public events for a user |\n| GET | /users/{username}/followers | List followers of a user |\n| GET | /users/{username}/following | List the people a user follows |\n| GET | /users/{username}/following/{target_user} | Check if a user follows another user |\n| GET | /users/{username}/gists | List gists for a user |\n| GET | /users/{username}/gpg_keys | List GPG keys for a user |\n| GET | /users/{username}/hovercard | Get contextual information for a user |\n| GET | /users/{username}/installation | Get a user installation for the authenticated app |\n| GET | /users/{username}/keys | List public keys for a user |\n| GET | /users/{username}/orgs | List organizations for a user |\n| GET | /users/{username}/projects | List user projects |\n| GET | /users/{username}/received_events | List events received by the authenticated user |\n| GET | /users/{username}/received_events/public | List public events received by a user |\n| GET | /users/{username}/repos | List repositories for a user |\n| PUT | /users/{username}/site_admin | Promote a user to be a site administrator |\n| DELETE | /users/{username}/site_admin | Demote a site administrator |\n| GET | /users/{username}/starred | List repositories starred by a user |\n| GET | /users/{username}/subscriptions | List repositories watched by a user |\n| PUT | /users/{username}/suspended | Suspend a user |\n| DELETE | /users/{username}/suspended | Unsuspend a user |\n\n### Zen\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /zen | Get the Zen of GitHub |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all resource?\" -> GET /\n- \"List all hooks?\" -> GET /admin/hooks\n- \"Create a hook?\" -> POST /admin/hooks\n- \"Get hook details?\" -> GET /admin/hooks/{hook_id}\n- \"Partially update a hook?\" -> PATCH /admin/hooks/{hook_id}\n- \"Delete a hook?\" -> DELETE /admin/hooks/{hook_id}\n- \"Create a ping?\" -> POST /admin/hooks/{hook_id}/pings\n- \"List all keys?\" -> GET /admin/keys\n- \"Delete a key?\" -> DELETE /admin/keys/{key_ids}\n- \"Create a sync?\" -> POST /admin/ldap/teams/{team_id}/sync\n- \"Create a organization?\" -> POST /admin/organizations\n- \"Partially update a organization?\" -> PATCH /admin/organizations/{org}\n- \"List all pre-receive-environments?\" -> GET /admin/pre-receive-environments\n- \"Create a pre-receive-environment?\" -> POST /admin/pre-receive-environments\n- \"Get pre-receive-environment details?\" -> GET /admin/pre-receive-environments/{pre_receive_environment_id}\n- \"Partially update a pre-receive-environment?\" -> PATCH /admin/pre-receive-environments/{pre_receive_environment_id}\n- \"Delete a pre-receive-environment?\" -> DELETE /admin/pre-receive-environments/{pre_receive_environment_id}\n- \"Create a download?\" -> POST /admin/pre-receive-environments/{pre_receive_environment_id}/downloads\n- \"List all latest?\" -> GET /admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest\n- \"List all pre-receive-hooks?\" -> GET /admin/pre-receive-hooks\n- \"Create a pre-receive-hook?\" -> POST /admin/pre-receive-hooks\n- \"Get pre-receive-hook details?\" -> GET /admin/pre-receive-hooks/{pre_receive_hook_id}\n- \"Partially update a pre-receive-hook?\" -> PATCH /admin/pre-receive-hooks/{pre_receive_hook_id}\n- \"Delete a pre-receive-hook?\" -> DELETE /admin/pre-receive-hooks/{pre_receive_hook_id}\n- \"List all tokens?\" -> GET /admin/tokens\n- \"Delete a token?\" -> DELETE /admin/tokens/{token_id}\n- \"Create a user?\" -> POST /admin/users\n- \"Partially update a user?\" -> PATCH /admin/users/{username}\n- \"Delete a user?\" -> DELETE /admin/users/{username}\n- \"Create a authorization?\" -> POST /admin/users/{username}/authorizations\n- \"List all app?\" -> GET /app\n- \"Create a conversion?\" -> POST /app-manifests/{code}/conversions\n- \"List all installations?\" -> GET /app/installations\n- \"Get installation details?\" -> GET /app/installations/{installation_id}\n- \"Delete a installation?\" -> DELETE /app/installations/{installation_id}\n- \"Create a access_token?\" -> POST /app/installations/{installation_id}/access_tokens\n- \"List all grants?\" -> GET /applications/grants\n- \"Get grant details?\" -> GET /applications/grants/{grant_id}\n- \"Delete a grant?\" -> DELETE /applications/grants/{grant_id}\n- \"Get token details?\" -> GET /applications/{client_id}/tokens/{access_token}\n- \"Get app details?\" -> GET /apps/{app_slug}\n- \"List all authorizations?\" -> GET /authorizations\n- \"Update a client?\" -> PUT /authorizations/clients/{client_id}\n- \"Get authorization details?\" -> GET /authorizations/{authorization_id}\n- \"Partially update a authorization?\" -> PATCH /authorizations/{authorization_id}\n- \"Delete a authorization?\" -> DELETE /authorizations/{authorization_id}\n- \"List all codes_of_conduct?\" -> GET /codes_of_conduct\n- \"Get codes_of_conduct details?\" -> GET /codes_of_conduct/{key}\n- \"List all emojis?\" -> GET /emojis\n- \"List all license?\" -> GET /enterprise/settings/license\n- \"List all all?\" -> GET /enterprise/stats/all\n- \"List all comments?\" -> GET /enterprise/stats/comments\n- \"List all gists?\" -> GET /enterprise/stats/gists\n- \"List all issues?\" -> GET /enterprise/stats/issues\n- \"List all milestones?\" -> GET /enterprise/stats/milestones\n- \"List all orgs?\" -> GET /enterprise/stats/orgs\n- \"List all pages?\" -> GET /enterprise/stats/pages\n- \"List all pulls?\" -> GET /enterprise/stats/pulls\n- \"List all repos?\" -> GET /enterprise/stats/repos\n- \"List all users?\" -> GET /enterprise/stats/users\n- \"List all events?\" -> GET /events\n- \"List all feeds?\" -> GET /feeds\n- \"Create a gist?\" -> POST /gists\n- \"List all public?\" -> GET /gists/public\n- \"List all starred?\" -> GET /gists/starred\n- \"Get gist details?\" -> GET /gists/{gist_id}\n- \"Partially update a gist?\" -> PATCH /gists/{gist_id}\n- \"Delete a gist?\" -> DELETE /gists/{gist_id}\n- \"Create a comment?\" -> POST /gists/{gist_id}/comments\n- \"Get comment details?\" -> GET /gists/{gist_id}/comments/{comment_id}\n- \"Partially update a comment?\" -> PATCH /gists/{gist_id}/comments/{comment_id}\n- \"Delete a comment?\" -> DELETE /gists/{gist_id}/comments/{comment_id}\n- \"List all commits?\" -> GET /gists/{gist_id}/commits\n- \"List all forks?\" -> GET /gists/{gist_id}/forks\n- \"Create a fork?\" -> POST /gists/{gist_id}/forks\n- \"List all star?\" -> GET /gists/{gist_id}/star\n- \"List all templates?\" -> GET /gitignore/templates\n- \"Get template details?\" -> GET /gitignore/templates/{name}\n- \"List all repositories?\" -> GET /installation/repositories\n- \"List all licenses?\" -> GET /licenses\n- \"Get license details?\" -> GET /licenses/{license}\n- \"Create a markdown?\" -> POST /markdown\n- \"Create a raw?\" -> POST /markdown/raw\n- \"List all meta?\" -> GET /meta\n- \"List all notifications?\" -> GET /notifications\n- \"Get thread details?\" -> GET /notifications/threads/{thread_id}\n- \"Partially update a thread?\" -> PATCH /notifications/threads/{thread_id}\n- \"List all subscription?\" -> GET /notifications/threads/{thread_id}/subscription\n- \"List all octocat?\" -> GET /octocat\n- \"List all organizations?\" -> GET /organizations\n- \"Get org details?\" -> GET /orgs/{org}\n- \"Partially update a org?\" -> PATCH /orgs/{org}\n- \"List all installation?\" -> GET /orgs/{org}/installation\n- \"List all members?\" -> GET /orgs/{org}/members\n- \"Get member details?\" -> GET /orgs/{org}/members/{username}\n- \"Delete a member?\" -> DELETE /orgs/{org}/members/{username}\n- \"Get membership details?\" -> GET /orgs/{org}/memberships/{username}\n- \"Update a membership?\" -> PUT /orgs/{org}/memberships/{username}\n- \"Delete a membership?\" -> DELETE /orgs/{org}/memberships/{username}\n- \"List all outside_collaborators?\" -> GET /orgs/{org}/outside_collaborators\n- \"Update a outside_collaborator?\" -> PUT /orgs/{org}/outside_collaborators/{username}\n- \"Delete a outside_collaborator?\" -> DELETE /orgs/{org}/outside_collaborators/{username}\n- \"List all projects?\" -> GET /orgs/{org}/projects\n- \"Create a project?\" -> POST /orgs/{org}/projects\n- \"List all public_members?\" -> GET /orgs/{org}/public_members\n- \"Get public_member details?\" -> GET /orgs/{org}/public_members/{username}\n- \"Update a public_member?\" -> PUT /orgs/{org}/public_members/{username}\n- \"Delete a public_member?\" -> DELETE /orgs/{org}/public_members/{username}\n- \"Create a repo?\" -> POST /orgs/{org}/repos\n- \"List all teams?\" -> GET /orgs/{org}/teams\n- \"Create a team?\" -> POST /orgs/{org}/teams\n- \"Get team details?\" -> GET /orgs/{org}/teams/{team_slug}\n- \"Get card details?\" -> GET /projects/columns/cards/{card_id}\n- \"Partially update a card?\" -> PATCH /projects/columns/cards/{card_id}\n- \"Delete a card?\" -> DELETE /projects/columns/cards/{card_id}\n- \"Create a move?\" -> POST /projects/columns/cards/{card_id}/moves\n- \"Get column details?\" -> GET /projects/columns/{column_id}\n- \"Partially update a column?\" -> PATCH /projects/columns/{column_id}\n- \"Delete a column?\" -> DELETE /projects/columns/{column_id}\n- \"List all cards?\" -> GET /projects/columns/{column_id}/cards\n- \"Create a card?\" -> POST /projects/columns/{column_id}/cards\n- \"Get project details?\" -> GET /projects/{project_id}\n- \"Partially update a project?\" -> PATCH /projects/{project_id}\n- \"Delete a project?\" -> DELETE /projects/{project_id}\n- \"List all collaborators?\" -> GET /projects/{project_id}/collaborators\n- \"Update a collaborator?\" -> PUT /projects/{project_id}/collaborators/{username}\n- \"Delete a collaborator?\" -> DELETE /projects/{project_id}/collaborators/{username}\n- \"List all permission?\" -> GET /projects/{project_id}/collaborators/{username}/permission\n- \"List all columns?\" -> GET /projects/{project_id}/columns\n- \"Create a column?\" -> POST /projects/{project_id}/columns\n- \"List all rate_limit?\" -> GET /rate_limit\n- \"Delete a reaction?\" -> DELETE /reactions/{reaction_id}\n- \"Get repo details?\" -> GET /repos/{owner}/{repo}\n- \"Partially update a repo?\" -> PATCH /repos/{owner}/{repo}\n- \"Delete a repo?\" -> DELETE /repos/{owner}/{repo}\n- \"List all assignees?\" -> GET /repos/{owner}/{repo}/assignees\n- \"Get assignee details?\" -> GET /repos/{owner}/{repo}/assignees/{assignee}\n- \"List all branches?\" -> GET /repos/{owner}/{repo}/branches\n- \"Get branche details?\" -> GET /repos/{owner}/{repo}/branches/{branch}\n- \"List all protection?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection\n- \"List all enforce_admins?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\n- \"Create a enforce_admin?\" -> POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\n- \"List all required_pull_request_reviews?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\n- \"List all required_signatures?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\n- \"Create a required_signature?\" -> POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\n- \"List all required_status_checks?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\n- \"List all contexts?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n- \"Create a context?\" -> POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n- \"List all restrictions?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\n- \"List all apps?\" -> GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n- \"Create a app?\" -> POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n- \"Create a check-run?\" -> POST /repos/{owner}/{repo}/check-runs\n- \"Get check-run details?\" -> GET /repos/{owner}/{repo}/check-runs/{check_run_id}\n- \"Partially update a check-run?\" -> PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}\n- \"List all annotations?\" -> GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\n- \"Create a check-suite?\" -> POST /repos/{owner}/{repo}/check-suites\n- \"Get check-suite details?\" -> GET /repos/{owner}/{repo}/check-suites/{check_suite_id}\n- \"List all check-runs?\" -> GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\n- \"Create a rerequest?\" -> POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest\n- \"Get collaborator details?\" -> GET /repos/{owner}/{repo}/collaborators/{username}\n- \"List all reactions?\" -> GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\n- \"Create a reaction?\" -> POST /repos/{owner}/{repo}/comments/{comment_id}/reactions\n- \"List all branches-where-head?\" -> GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head\n- \"Get commit details?\" -> GET /repos/{owner}/{repo}/commits/{ref}\n- \"List all check-suites?\" -> GET /repos/{owner}/{repo}/commits/{ref}/check-suites\n- \"List all status?\" -> GET /repos/{owner}/{repo}/commits/{ref}/status\n- \"List all statuses?\" -> GET /repos/{owner}/{repo}/commits/{ref}/statuses\n- \"Get compare details?\" -> GET /repos/{owner}/{repo}/compare/{basehead}\n- \"Create a attachment?\" -> POST /repos/{owner}/{repo}/content_references/{content_reference_id}/attachments\n- \"Get content details?\" -> GET /repos/{owner}/{repo}/contents/{path}\n- \"Update a content?\" -> PUT /repos/{owner}/{repo}/contents/{path}\n- \"Delete a content?\" -> DELETE /repos/{owner}/{repo}/contents/{path}\n- \"List all contributors?\" -> GET /repos/{owner}/{repo}/contributors\n- \"List all deployments?\" -> GET /repos/{owner}/{repo}/deployments\n- \"Create a deployment?\" -> POST /repos/{owner}/{repo}/deployments\n- \"Get deployment details?\" -> GET /repos/{owner}/{repo}/deployments/{deployment_id}\n- \"Create a statuse?\" -> POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\n- \"Get statuse details?\" -> GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}\n- \"Create a blob?\" -> POST /repos/{owner}/{repo}/git/blobs\n- \"Get blob details?\" -> GET /repos/{owner}/{repo}/git/blobs/{file_sha}\n- \"Create a commit?\" -> POST /repos/{owner}/{repo}/git/commits\n- \"Get matching-ref details?\" -> GET /repos/{owner}/{repo}/git/matching-refs/{ref}\n- \"Get ref details?\" -> GET /repos/{owner}/{repo}/git/ref/{ref}\n- \"Create a ref?\" -> POST /repos/{owner}/{repo}/git/refs\n- \"Partially update a ref?\" -> PATCH /repos/{owner}/{repo}/git/refs/{ref}\n- \"Delete a ref?\" -> DELETE /repos/{owner}/{repo}/git/refs/{ref}\n- \"Create a tag?\" -> POST /repos/{owner}/{repo}/git/tags\n- \"Get tag details?\" -> GET /repos/{owner}/{repo}/git/tags/{tag_sha}\n- \"Create a tree?\" -> POST /repos/{owner}/{repo}/git/trees\n- \"Get tree details?\" -> GET /repos/{owner}/{repo}/git/trees/{tree_sha}\n- \"Create a test?\" -> POST /repos/{owner}/{repo}/hooks/{hook_id}/tests\n- \"List all invitations?\" -> GET /repos/{owner}/{repo}/invitations\n- \"Partially update a invitation?\" -> PATCH /repos/{owner}/{repo}/invitations/{invitation_id}\n- \"Delete a invitation?\" -> DELETE /repos/{owner}/{repo}/invitations/{invitation_id}\n- \"Create a issue?\" -> POST /repos/{owner}/{repo}/issues\n- \"Get event details?\" -> GET /repos/{owner}/{repo}/issues/events/{event_id}\n- \"Get issue details?\" -> GET /repos/{owner}/{repo}/issues/{issue_number}\n- \"Partially update a issue?\" -> PATCH /repos/{owner}/{repo}/issues/{issue_number}\n- \"Create a assignee?\" -> POST /repos/{owner}/{repo}/issues/{issue_number}/assignees\n- \"List all labels?\" -> GET /repos/{owner}/{repo}/issues/{issue_number}/labels\n- \"Create a label?\" -> POST /repos/{owner}/{repo}/issues/{issue_number}/labels\n- \"Delete a label?\" -> DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}\n- \"List all timeline?\" -> GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\n- \"Create a key?\" -> POST /repos/{owner}/{repo}/keys\n- \"Get key details?\" -> GET /repos/{owner}/{repo}/keys/{key_id}\n- \"Get label details?\" -> GET /repos/{owner}/{repo}/labels/{name}\n- \"Partially update a label?\" -> PATCH /repos/{owner}/{repo}/labels/{name}\n- \"List all languages?\" -> GET /repos/{owner}/{repo}/languages\n- \"Create a merge?\" -> POST /repos/{owner}/{repo}/merges\n- \"Create a milestone?\" -> POST /repos/{owner}/{repo}/milestones\n- \"Get milestone details?\" -> GET /repos/{owner}/{repo}/milestones/{milestone_number}\n- \"Partially update a milestone?\" -> PATCH /repos/{owner}/{repo}/milestones/{milestone_number}\n- \"Delete a milestone?\" -> DELETE /repos/{owner}/{repo}/milestones/{milestone_number}\n- \"Create a page?\" -> POST /repos/{owner}/{repo}/pages\n- \"List all builds?\" -> GET /repos/{owner}/{repo}/pages/builds\n- \"Create a build?\" -> POST /repos/{owner}/{repo}/pages/builds\n- \"Get build details?\" -> GET /repos/{owner}/{repo}/pages/builds/{build_id}\n- \"Create a pull?\" -> POST /repos/{owner}/{repo}/pulls\n- \"Get pull details?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}\n- \"Partially update a pull?\" -> PATCH /repos/{owner}/{repo}/pulls/{pull_number}\n- \"Create a reply?\" -> POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies\n- \"List all files?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}/files\n- \"List all merge?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}/merge\n- \"List all requested_reviewers?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\n- \"Create a requested_reviewer?\" -> POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\n- \"List all reviews?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\n- \"Create a review?\" -> POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews\n- \"Get review details?\" -> GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n- \"Update a review?\" -> PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n- \"Delete a review?\" -> DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n- \"Create a event?\" -> POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events\n- \"List all readme?\" -> GET /repos/{owner}/{repo}/readme\n- \"Get readme details?\" -> GET /repos/{owner}/{repo}/readme/{dir}\n- \"List all releases?\" -> GET /repos/{owner}/{repo}/releases\n- \"Create a release?\" -> POST /repos/{owner}/{repo}/releases\n- \"Get asset details?\" -> GET /repos/{owner}/{repo}/releases/assets/{asset_id}\n- \"Partially update a asset?\" -> PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}\n- \"Delete a asset?\" -> DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}\n- \"Get release details?\" -> GET /repos/{owner}/{repo}/releases/{release_id}\n- \"Partially update a release?\" -> PATCH /repos/{owner}/{repo}/releases/{release_id}\n- \"Delete a release?\" -> DELETE /repos/{owner}/{repo}/releases/{release_id}\n- \"List all assets?\" -> GET /repos/{owner}/{repo}/releases/{release_id}/assets\n- \"Create a asset?\" -> POST /repos/{owner}/{repo}/releases/{release_id}/assets\n- \"List all stargazers?\" -> GET /repos/{owner}/{repo}/stargazers\n- \"List all code_frequency?\" -> GET /repos/{owner}/{repo}/stats/code_frequency\n- \"List all commit_activity?\" -> GET /repos/{owner}/{repo}/stats/commit_activity\n- \"List all participation?\" -> GET /repos/{owner}/{repo}/stats/participation\n- \"List all punch_card?\" -> GET /repos/{owner}/{repo}/stats/punch_card\n- \"List all subscribers?\" -> GET /repos/{owner}/{repo}/subscribers\n- \"List all tags?\" -> GET /repos/{owner}/{repo}/tags\n- \"Get tarball details?\" -> GET /repos/{owner}/{repo}/tarball/{ref}\n- \"List all topics?\" -> GET /repos/{owner}/{repo}/topics\n- \"Create a transfer?\" -> POST /repos/{owner}/{repo}/transfer\n- \"Get zipball details?\" -> GET /repos/{owner}/{repo}/zipball/{ref}\n- \"Create a generate?\" -> POST /repos/{template_owner}/{template_repo}/generate\n- \"Search code?\" -> GET /search/code\n- \"Search commits?\" -> GET /search/commits\n- \"Search issues?\" -> GET /search/issues\n- \"Search labels?\" -> GET /search/labels\n- \"Search repositories?\" -> GET /search/repositories\n- \"Search topics?\" -> GET /search/topics\n- \"Search users?\" -> GET /search/users\n- \"List all configcheck?\" -> GET /setup/api/configcheck\n- \"Create a configure?\" -> POST /setup/api/configure\n- \"List all maintenance?\" -> GET /setup/api/maintenance\n- \"Create a maintenance?\" -> POST /setup/api/maintenance\n- \"List all settings?\" -> GET /setup/api/settings\n- \"List all authorized-keys?\" -> GET /setup/api/settings/authorized-keys\n- \"Create a authorized-key?\" -> POST /setup/api/settings/authorized-keys\n- \"Create a start?\" -> POST /setup/api/start\n- \"Create a upgrade?\" -> POST /setup/api/upgrade\n- \"Partially update a team?\" -> PATCH /teams/{team_id}\n- \"Delete a team?\" -> DELETE /teams/{team_id}\n- \"List all discussions?\" -> GET /teams/{team_id}/discussions\n- \"Create a discussion?\" -> POST /teams/{team_id}/discussions\n- \"Get discussion details?\" -> GET /teams/{team_id}/discussions/{discussion_number}\n- \"Partially update a discussion?\" -> PATCH /teams/{team_id}/discussions/{discussion_number}\n- \"Delete a discussion?\" -> DELETE /teams/{team_id}/discussions/{discussion_number}\n- \"Update a member?\" -> PUT /teams/{team_id}/members/{username}\n- \"Update a project?\" -> PUT /teams/{team_id}/projects/{project_id}\n- \"Update a repo?\" -> PUT /teams/{team_id}/repos/{owner}/{repo}\n- \"List all user?\" -> GET /user\n- \"List all emails?\" -> GET /user/emails\n- \"Create a email?\" -> POST /user/emails\n- \"List all followers?\" -> GET /user/followers\n- \"List all following?\" -> GET /user/following\n- \"Get following details?\" -> GET /user/following/{username}\n- \"Update a following?\" -> PUT /user/following/{username}\n- \"Delete a following?\" -> DELETE /user/following/{username}\n- \"List all gpg_keys?\" -> GET /user/gpg_keys\n- \"Create a gpg_key?\" -> POST /user/gpg_keys\n- \"Get gpg_key details?\" -> GET /user/gpg_keys/{gpg_key_id}\n- \"Delete a gpg_key?\" -> DELETE /user/gpg_keys/{gpg_key_id}\n- \"Update a repository?\" -> PUT /user/installations/{installation_id}/repositories/{repository_id}\n- \"Delete a repository?\" -> DELETE /user/installations/{installation_id}/repositories/{repository_id}\n- \"List all public_emails?\" -> GET /user/public_emails\n- \"List all repository_invitations?\" -> GET /user/repository_invitations\n- \"Partially update a repository_invitation?\" -> PATCH /user/repository_invitations/{invitation_id}\n- \"Delete a repository_invitation?\" -> DELETE /user/repository_invitations/{invitation_id}\n- \"Get starred details?\" -> GET /user/starred/{owner}/{repo}\n- \"Update a starred?\" -> PUT /user/starred/{owner}/{repo}\n- \"Delete a starred?\" -> DELETE /user/starred/{owner}/{repo}\n- \"List all subscriptions?\" -> GET /user/subscriptions\n- \"Get user details?\" -> GET /users/{username}\n- \"List all hovercard?\" -> GET /users/{username}/hovercard\n- \"List all received_events?\" -> GET /users/{username}/received_events\n- \"List all zen?\" -> GET /zen\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Paginated endpoints accept limit/offset or cursor parameters\n- Create/update endpoints return the modified resource on success\n- Error responses include status codes and descriptions in the spec\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api GitHub v3 REST API\n@base {protocol}://{hostname}/api/v3\n@version 1.1.4\n@auth ApiKey access_token in path\n@endpoints 516\n@hint download_for_search\n@toc root(1), admin(33), app(5), app-manifests(1), applications(7), apps(1), authorizations(7), codes_of_conduct(2), emojis(1), enterprise(12), events(1), feeds(1), gists(19), gitignore(2), installation(1), issues(1), licenses(2), markdown(2), meta(1), networks(1), notifications(7), octocat(1), organizations(1), orgs(36), projects(19), rate_limit(1), reactions(1), repos(232), repositories(1), search(7), setup(11), teams(33), user(40), users(24), zen(1)\n\n@group root\n@endpoint GET /\n@desc GitHub API Root\n@returns(200) {current_user_url: str(uri-template), current_user_authorizations_html_url: str(uri-template), authorizations_url: str(uri-template), code_search_url: str(uri-template), commit_search_url: str(uri-template), emails_url: str(uri-template), emojis_url: str(uri-template), events_url: str(uri-template), feeds_url: str(uri-template), followers_url: str(uri-template), following_url: str(uri-template), gists_url: str(uri-template), hub_url: str(uri-template), issue_search_url: str(uri-template), issues_url: str(uri-template), keys_url: str(uri-template), label_search_url: str(uri-template), notifications_url: str(uri-template), organization_url: str(uri-template), organization_repositories_url: str(uri-template), organization_teams_url: str(uri-template), public_gists_url: str(uri-template), rate_limit_url: str(uri-template), repository_url: str(uri-template), repository_search_url: str(uri-template), current_user_repositories_url: str(uri-template), starred_url: str(uri-template), starred_gists_url: str(uri-template), topic_search_url: str(uri-template), user_url: str(uri-template), user_organizations_url: str(uri-template), user_repositories_url: str(uri-template), user_search_url: str(uri-template)} # Response\n\n@endgroup\n\n@group admin\n@endpoint GET /admin/hooks\n@desc List global webhooks\n@required {accept: str=application/vnd.github.superpro-preview+json # This API is under preview and subject to change.}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /admin/hooks\n@desc Create a global webhook\n@required {accept: str=application/vnd.github.superpro-preview+json # This API is under preview and subject to change., name: str # Must be passed as \"web\"., config: map{url!: str, content_type: str, secret: str, insecure_ssl: str} # Key/value pairs to provide settings for this webhook.}\n@optional {events: [str] # The [events](https://docs.github.com/enterprise-server@2.19/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.}\n@returns(201) {type: str, id: int, name: str, active: bool, events: [str], config: map{url: str, content_type: str, insecure_ssl: str, secret: str}, updated_at: str, created_at: str, url: str, ping_url: str} # Response\n@example_request {\"name\":\"web\",\"events\":[\"organization\",\"user\"],\"config\":{\"url\":\"https://example.com/webhook\",\"content_type\":\"json\",\"secret\":\"secret\"}}\n\n@endpoint GET /admin/hooks/{hook_id}\n@desc Get a global webhook\n@required {accept: str=application/vnd.github.superpro-preview+json # This API is under preview and subject to change., hook_id: int}\n@returns(200) {type: str, id: int, name: str, active: bool, events: [str], config: map{url: str, content_type: str, insecure_ssl: str, secret: str}, updated_at: str, created_at: str, url: str, ping_url: str} # Response\n\n@endpoint PATCH /admin/hooks/{hook_id}\n@desc Update a global webhook\n@required {accept: str=application/vnd.github.superpro-preview+json # This API is under preview and subject to change., hook_id: int}\n@optional {config: map{url!: str, content_type: str, secret: str, insecure_ssl: str} # Key/value pairs to provide settings for this webhook., events: [str] # The [events](https://docs.github.com/enterprise-server@2.19/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.}\n@returns(200) {type: str, id: int, name: str, active: bool, events: [str], config: map{url: str, content_type: str, insecure_ssl: str}, updated_at: str, created_at: str, url: str, ping_url: str} # Response\n@example_request {\"events\":[\"organization\"],\"config\":{\"url\":\"https://example.com/webhook\"}}\n\n@endpoint DELETE /admin/hooks/{hook_id}\n@desc Delete a global webhook\n@required {accept: str=application/vnd.github.superpro-preview+json # This API is under preview and subject to change., hook_id: int}\n@returns(204) Response\n\n@endpoint POST /admin/hooks/{hook_id}/pings\n@desc Ping a global webhook\n@required {accept: str=application/vnd.github.superpro-preview+json # This API is under preview and subject to change., hook_id: int}\n@returns(204) Response\n\n@endpoint GET /admin/keys\n@desc List public keys\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch., direction: str(asc/desc)=desc # One of `asc` (ascending) or `desc` (descending)., sort: str(created/updated/accessed)=created, since: str # Only show public keys accessed after the given time.}\n@returns(200) Response\n\n@endpoint DELETE /admin/keys/{key_ids}\n@desc Delete a public key\n@required {key_ids: str}\n@returns(204) Response\n\n@endpoint PATCH /admin/ldap/teams/{team_id}/mapping\n@desc Update LDAP mapping for a team\n@required {team_id: int}\n@optional {ldap_dn: str # The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.}\n@returns(200) {ldap_dn: str, id: int, node_id: str, url: str, html_url: str, name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str, parent: any?} # Response\n@example_request {\"ldap_dn\":\"cn=Enterprise Ops,ou=teams,dc=github,dc=com\"}\n\n@endpoint POST /admin/ldap/teams/{team_id}/sync\n@desc Sync LDAP mapping for a team\n@required {team_id: int}\n@returns(201) {status: str} # Response\n\n@endpoint PATCH /admin/ldap/users/{username}/mapping\n@desc Update LDAP mapping for a user\n@required {username: str}\n@optional {ldap_dn: str # The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.}\n@returns(200) {ldap_dn: str, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, name: str?, company: str?, blog: str?, location: str?, email: str(email)?, hireable: bool?, bio: str?, twitter_username: str?, public_repos: int, public_gists: int, followers: int, following: int, created_at: str(date-time), updated_at: str(date-time), private_gists: int, total_private_repos: int, owned_private_repos: int, disk_usage: int, collaborators: int, two_factor_authentication: bool, plan: map{collaborators: int, name: str, space: int, private_repos: int}, suspended_at: str(date-time)?, business_plus: bool} # Response\n@example_request {\"ldap_dn\":\"uid=asdf,ou=users,dc=github,dc=com\"}\n\n@endpoint POST /admin/ldap/users/{username}/sync\n@desc Sync LDAP mapping for a user\n@required {username: str}\n@returns(201) {status: str} # Response\n\n@endpoint POST /admin/organizations\n@desc Create an organization\n@required {login: str # The organization's username., admin: str # The login of the user who will manage this organization.}\n@optional {profile_name: str # The organization's display name.}\n@returns(201) {login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?} # Response\n@example_request {\"login\":\"github\",\"profile_name\":\"GitHub, Inc.\",\"admin\":\"monalisaoctocat\"}\n\n@endpoint PATCH /admin/organizations/{org}\n@desc Update an organization name\n@required {org: str, login: str # The organization's new name.}\n@returns(202) {message: str, url: str} # Response\n@example_request {\"login\":\"the-new-octocats\"}\n\n@endpoint GET /admin/pre-receive-environments\n@desc List pre-receive environments\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch., direction: str(asc/desc)=desc # One of `asc` (ascending) or `desc` (descending)., sort: str(created/updated/name)=created}\n@returns(200) Response\n\n@endpoint POST /admin/pre-receive-environments\n@desc Create a pre-receive environment\n@required {name: str # The new pre-receive environment's name., image_url: str # URL from which to download a tarball of this environment.}\n@returns(201) {id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}} # Response\n@example_request {\"name\":\"DevTools Hook Env\",\"image_url\":\"https://my_file_server/path/to/devtools_env.tar.gz\"}\n\n@endpoint GET /admin/pre-receive-environments/{pre_receive_environment_id}\n@desc Get a pre-receive environment\n@required {pre_receive_environment_id: int}\n@returns(200) {id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}} # Response\n\n@endpoint PATCH /admin/pre-receive-environments/{pre_receive_environment_id}\n@desc Update a pre-receive environment\n@required {pre_receive_environment_id: int}\n@optional {name: str # This pre-receive environment's new name., image_url: str # URL from which to download a tarball of this environment.}\n@returns(200) {id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}} # Response\n@errors {422: Client Errors}\n\n@endpoint DELETE /admin/pre-receive-environments/{pre_receive_environment_id}\n@desc Delete a pre-receive environment\n@required {pre_receive_environment_id: int}\n@returns(204) Response\n@errors {422: Client Errors}\n\n@endpoint POST /admin/pre-receive-environments/{pre_receive_environment_id}/downloads\n@desc Start a pre-receive environment download\n@required {pre_receive_environment_id: int}\n@returns(202) {url: str, state: str, downloaded_at: str?, message: str?} # Response\n@errors {422: Client Errors}\n\n@endpoint GET /admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest\n@desc Get the download status for a pre-receive environment\n@required {pre_receive_environment_id: int}\n@returns(200) {url: str, state: str, downloaded_at: str?, message: str?} # Response\n\n@endpoint GET /admin/pre-receive-hooks\n@desc List pre-receive hooks\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch., direction: str(asc/desc)=desc # One of `asc` (ascending) or `desc` (descending)., sort: str(created/updated/name)=created # One of `created` (when the repository was starred) or `updated` (when it was last pushed to) or `name`.}\n@returns(200) Response\n\n@endpoint POST /admin/pre-receive-hooks\n@desc Create a pre-receive hook\n@required {name: str # The name of the hook., script: str # The script that the hook runs., script_repository: map{} # The GitHub repository where the script is kept., environment: map{} # The pre-receive environment where the script is executed.}\n@optional {enforcement: str # The state of enforcement for this hook. default: `disabled`, allow_downstream_configuration: bool # Whether enforcement can be overridden at the org or repo level. default: `false`}\n@returns(201) {id: int, name: str, enforcement: str, script: str, script_repository: map{id: int, full_name: str, url: str, html_url: str}, environment: map{id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}}, allow_downstream_configuration: bool} # Response\n@example_request {\"name\":\"Check Commits\",\"script\":\"scripts/commit_check.sh\",\"enforcement\":\"disabled\",\"allow_downstream_configuration\":false,\"script_repository\":{\"full_name\":\"DevIT/hooks\"},\"environment\":{\"id\":2}}\n\n@endpoint GET /admin/pre-receive-hooks/{pre_receive_hook_id}\n@desc Get a pre-receive hook\n@required {pre_receive_hook_id: int # pre_receive_hook_id parameter}\n@returns(200) {id: int, name: str, enforcement: str, script: str, script_repository: map{id: int, full_name: str, url: str, html_url: str}, environment: map{id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}}, allow_downstream_configuration: bool} # Response\n\n@endpoint PATCH /admin/pre-receive-hooks/{pre_receive_hook_id}\n@desc Update a pre-receive hook\n@required {pre_receive_hook_id: int # pre_receive_hook_id parameter}\n@optional {name: str # The name of the hook., script: str # The script that the hook runs., script_repository: map{} # The GitHub repository where the script is kept., environment: map{} # The pre-receive environment where the script is executed., enforcement: str # The state of enforcement for this hook., allow_downstream_configuration: bool # Whether enforcement can be overridden at the org or repo level.}\n@returns(200) {id: int, name: str, enforcement: str, script: str, script_repository: map{id: int, full_name: str, url: str, html_url: str}, environment: map{id: int, name: str, image_url: str, url: str, html_url: str, default_environment: bool, created_at: str, hooks_count: int, download: map{url: str, state: str, downloaded_at: str?, message: str?}}, allow_downstream_configuration: bool} # Response\n@example_request {\"name\":\"Check Commits\",\"environment\":{\"id\":1},\"allow_downstream_configuration\":true}\n\n@endpoint DELETE /admin/pre-receive-hooks/{pre_receive_hook_id}\n@desc Delete a pre-receive hook\n@required {pre_receive_hook_id: int # pre_receive_hook_id parameter}\n@returns(204) Response\n\n@endpoint GET /admin/tokens\n@desc List personal access tokens\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint DELETE /admin/tokens/{token_id}\n@desc Delete a personal access token\n@required {token_id: int}\n@returns(204) Response\n\n@endpoint POST /admin/users\n@desc Create a user\n@required {login: str # The user's username.}\n@optional {email: str # **Required for built-in authentication.** The user's email address. This parameter can be omitted when using CAS, LDAP, or SAML. For details on built-in and centrally-managed authentication, see the [GitHub authentication guide](https://help.github.com/enterprise/2.19/admin/guides/user-management/authenticating-users-for-your-github-enterprise-server-instance/).}\n@returns(201) {name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str} # Response\n@example_request {\"login\":\"monalisa\",\"email\":\"octocat@github.com\"}\n\n@endpoint PATCH /admin/users/{username}\n@desc Update the username for a user\n@required {username: str, login: str # The user's new username.}\n@returns(202) {message: str, url: str} # Response\n@example_request {\"login\":\"thenewmonalisa\"}\n\n@endpoint DELETE /admin/users/{username}\n@desc Delete a user\n@required {username: str}\n@returns(204) Response\n\n@endpoint POST /admin/users/{username}/authorizations\n@desc Create an impersonation OAuth token\n@required {username: str}\n@optional {scopes: [str] # A list of [scopes](https://docs.github.com/enterprise-server@2.19/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).}\n@returns(201) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, content_references: str, contents: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_hooks: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}} # Response\n\n@endpoint DELETE /admin/users/{username}/authorizations\n@desc Delete an impersonation OAuth token\n@required {username: str}\n@returns(204) Response\n\n@endgroup\n\n@group app\n@endpoint GET /app\n@desc Get the authenticated app\n@returns(200) {id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str} # Response\n\n@endgroup\n\n@group app-manifests\n@endpoint POST /app-manifests/{code}/conversions\n@desc Create a GitHub App from a manifest\n@required {code: str}\n@returns(201) Response\n@errors {404: Resource not found, 422: Validation failed}\n\n@endgroup\n\n@group app\n@endpoint GET /app/installations\n@desc List installations for the authenticated app\n@required {accept: str=application/vnd.github.machine-man-preview+json # This API is under preview and subject to change.}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) The permissions the installation has are included under the `permissions` key.\n\n@endpoint GET /app/installations/{installation_id}\n@desc Get an installation for the authenticated app\n@required {accept: str=application/vnd.github.machine-man-preview+json # This API is under preview and subject to change., installation_id: int # installation_id parameter}\n@returns(200) {id: int, account: any?, repository_selection: str, access_tokens_url: str(uri), repositories_url: str(uri), html_url: str(uri), app_id: int, target_id: int, target_type: str, permissions: map{deployments: str, checks: str, metadata: str, contents: str, pull_requests: str, statuses: str, issues: str, organization_administration: str}, events: [str], created_at: str(date-time), updated_at: str(date-time), single_file_name: str?, app_slug: str, suspended_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, suspended_at: str(date-time)?, contact_email: str?} # Response\n@errors {404: Resource not found, 415: Preview header missing}\n\n@endpoint DELETE /app/installations/{installation_id}\n@desc Delete an installation for the authenticated app\n@required {accept: str=application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json # This API is under preview and subject to change., installation_id: int # installation_id parameter}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint POST /app/installations/{installation_id}/access_tokens\n@desc Create an installation access token for an app\n@required {accept: str=application/vnd.github.machine-man-preview+json # This API is under preview and subject to change., installation_id: int # installation_id parameter}\n@optional {repositories: [str] # List of repository names that the token should have access to, repository_ids: [int] # List of repository IDs that the token should have access to, permissions: map{actions: str, administration: str, checks: str, content_references: str, contents: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_hooks: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str} # The permissions granted to the user-to-server access token.}\n@returns(201) {token: str, expires_at: str, permissions: map{actions: str, administration: str, checks: str, content_references: str, contents: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_hooks: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str}, repository_selection: str, repositories: [map], single_file: str, has_multiple_single_files: bool, single_file_paths: [str]} # Response\n@errors {401: Requires authentication, 403: Forbidden, 404: Resource not found, 415: Preview header missing, 422: Validation failed}\n\n@endgroup\n\n@group applications\n@endpoint GET /applications/grants\n@desc List your grants\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch., client_id: str # The client ID of your GitHub app.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /applications/grants/{grant_id}\n@desc Get a single grant\n@required {grant_id: int # grant_id parameter}\n@returns(200) {id: int, url: str(uri), app: map{client_id: str, name: str, url: str(uri)}, created_at: str(date-time), updated_at: str(date-time), scopes: [str], user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint DELETE /applications/grants/{grant_id}\n@desc Delete a grant\n@required {grant_id: int # grant_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint DELETE /applications/{client_id}/grants/{access_token}\n@desc Revoke a grant for an application\n@required {client_id: str # The client ID of your GitHub app., access_token: str}\n@returns(204) Response\n\n@endpoint GET /applications/{client_id}/tokens/{access_token}\n@desc Check an authorization\n@required {client_id: str # The client ID of your GitHub app., access_token: str}\n@returns(200) {id: int, url: str, scopes: [str], token: str, token_last_eight: str, hashed_token: str, app: map{url: str, name: str, client_id: str}, note: str, note_url: str, updated_at: str, created_at: str, fingerprint: str, user: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}} # Response\n\n@endpoint POST /applications/{client_id}/tokens/{access_token}\n@desc Reset an authorization\n@required {client_id: str # The client ID of your GitHub app., access_token: str}\n@returns(200) {id: int, url: str, scopes: [str], token: str, token_last_eight: str, hashed_token: str, app: map{url: str, name: str, client_id: str}, note: str, note_url: str, updated_at: str, created_at: str, fingerprint: str, user: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}} # Response\n\n@endpoint DELETE /applications/{client_id}/tokens/{access_token}\n@desc Revoke an authorization for an application\n@required {client_id: str # The client ID of your GitHub app., access_token: str}\n@returns(204) Response\n\n@endgroup\n\n@group apps\n@endpoint GET /apps/{app_slug}\n@desc Get an app\n@required {app_slug: str}\n@returns(200) {id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str} # Response\n@errors {403: Forbidden, 404: Resource not found, 415: Preview header missing}\n\n@endgroup\n\n@group authorizations\n@endpoint GET /authorizations\n@desc List your authorizations\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch., client_id: str # The client ID of your GitHub app.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /authorizations\n@desc Create a new authorization\n@optional {scopes: [str] # A list of scopes that this authorization is in., note: str # A note to remind you what the OAuth token is for., note_url: str # A URL to remind you what app the OAuth token is for., client_id: str # The OAuth app client key for which to create the token., client_secret: str # The OAuth app client secret for which to create the token., fingerprint: str # A unique string to distinguish an authorization from others created for the same client ID and user.}\n@returns(201) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, content_references: str, contents: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_hooks: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 410: Gone, 422: Validation failed}\n\n@endpoint PUT /authorizations/clients/{client_id}\n@desc Get-or-create an authorization for a specific app\n@required {client_id: str # The client ID of your GitHub app., client_secret: str # The OAuth app client secret for which to create the token.}\n@optional {scopes: [str] # A list of scopes that this authorization is in., note: str # A note to remind you what the OAuth token is for., note_url: str # A URL to remind you what app the OAuth token is for., fingerprint: str # A unique string to distinguish an authorization from others created for the same client ID and user.}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, content_references: str, contents: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_hooks: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}} # if returning an existing token\n@returns(201) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, content_references: str, contents: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_hooks: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}} # **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/enterprise-server@2.19/rest/reference/oauth-authorizations), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/enterprise-server@2.19/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/enterprise-server@2.19/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed}\n\n@endpoint PUT /authorizations/clients/{client_id}/{fingerprint}\n@desc Get-or-create an authorization for a specific app and fingerprint\n@required {client_id: str # The client ID of your GitHub app., fingerprint: str, client_secret: str # The OAuth app client secret for which to create the token.}\n@optional {scopes: [str] # A list of scopes that this authorization is in., note: str # A note to remind you what the OAuth token is for., note_url: str # A URL to remind you what app the OAuth token is for.}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, content_references: str, contents: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_hooks: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}} # if returning an existing token\n@returns(201) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, content_references: str, contents: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_hooks: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}} # Response if returning a new token\n@errors {422: Validation failed}\n\n@endpoint GET /authorizations/{authorization_id}\n@desc Get a single authorization\n@required {authorization_id: int # authorization_id parameter}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, content_references: str, contents: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_hooks: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint PATCH /authorizations/{authorization_id}\n@desc Update an existing authorization\n@required {authorization_id: int # authorization_id parameter}\n@optional {scopes: [str] # A list of scopes that this authorization is in., add_scopes: [str] # A list of scopes to add to this authorization., remove_scopes: [str] # A list of scopes to remove from this authorization., note: str # A note to remind you what the OAuth token is for., note_url: str # A URL to remind you what app the OAuth token is for., fingerprint: str # A unique string to distinguish an authorization from others created for the same client ID and user.}\n@returns(200) {id: int, url: str(uri), scopes: [str]?, token: str, token_last_eight: str?, hashed_token: str?, app: map{client_id: str, name: str, url: str(uri)}, note: str?, note_url: str(uri)?, updated_at: str(date-time), created_at: str(date-time), fingerprint: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, installation: map?{permissions: map{actions: str, administration: str, checks: str, content_references: str, contents: str, deployments: str, environments: str, issues: str, metadata: str, packages: str, pages: str, pull_requests: str, repository_hooks: str, repository_projects: str, secret_scanning_alerts: str, secrets: str, security_events: str, single_file: str, statuses: str, vulnerability_alerts: str, workflows: str, members: str, organization_administration: str, organization_hooks: str, organization_plan: str, organization_projects: str, organization_packages: str, organization_secrets: str, organization_self_hosted_runners: str, organization_user_blocking: str, team_discussions: str}, repository_selection: str, single_file_name: str?, has_multiple_single_files: bool, single_file_paths: [str], repositories_url: str(uri), account: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}} # Response\n@errors {422: Validation failed}\n\n@endpoint DELETE /authorizations/{authorization_id}\n@desc Delete an authorization\n@required {authorization_id: int # authorization_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endgroup\n\n@group codes_of_conduct\n@endpoint GET /codes_of_conduct\n@desc Get all codes of conduct\n@returns(200) Response\n@errors {304: Not modified}\n\n@endpoint GET /codes_of_conduct/{key}\n@desc Get a code of conduct\n@required {key: str}\n@returns(200) {key: str, name: str, url: str(uri), body: str, html_url: str(uri)?} # Response\n@errors {304: Not modified, 404: Resource not found}\n\n@endgroup\n\n@group emojis\n@endpoint GET /emojis\n@desc Get emojis\n@returns(200) Response\n@errors {304: Not modified}\n\n@endgroup\n\n@group enterprise\n@endpoint GET /enterprise/settings/license\n@desc Get license information\n@returns(200) {seats: any, seats_used: int, seats_available: any, kind: str, days_until_expiration: int, expire_at: str} # Response\n\n@endpoint GET /enterprise/stats/all\n@desc Get all statistics\n@returns(200) {repos: map{total_repos: int, root_repos: int, fork_repos: int, org_repos: int, total_pushes: int, total_wikis: int}, hooks: map{total_hooks: int, active_hooks: int, inactive_hooks: int}, pages: map{total_pages: int}, orgs: map{total_orgs: int, disabled_orgs: int, total_teams: int, total_team_members: int}, users: map{total_users: int, admin_users: int, suspended_users: int}, pulls: map{total_pulls: int, merged_pulls: int, mergeable_pulls: int, unmergeable_pulls: int}, issues: map{total_issues: int, open_issues: int, closed_issues: int}, milestones: map{total_milestones: int, open_milestones: int, closed_milestones: int}, gists: map{total_gists: int, private_gists: int, public_gists: int}, comments: map{total_commit_comments: int, total_gist_comments: int, total_issue_comments: int, total_pull_request_comments: int}} # Response\n\n@endpoint GET /enterprise/stats/comments\n@desc Get comment statistics\n@returns(200) {total_commit_comments: int, total_gist_comments: int, total_issue_comments: int, total_pull_request_comments: int} # Response\n\n@endpoint GET /enterprise/stats/gists\n@desc Get gist statistics\n@returns(200) {total_gists: int, private_gists: int, public_gists: int} # Response\n\n@endpoint GET /enterprise/stats/hooks\n@desc Get hooks statistics\n@returns(200) {total_hooks: int, active_hooks: int, inactive_hooks: int} # Response\n\n@endpoint GET /enterprise/stats/issues\n@desc Get issue statistics\n@returns(200) {total_issues: int, open_issues: int, closed_issues: int} # Response\n\n@endpoint GET /enterprise/stats/milestones\n@desc Get milestone statistics\n@returns(200) {total_milestones: int, open_milestones: int, closed_milestones: int} # Response\n\n@endpoint GET /enterprise/stats/orgs\n@desc Get organization statistics\n@returns(200) {total_orgs: int, disabled_orgs: int, total_teams: int, total_team_members: int} # Response\n\n@endpoint GET /enterprise/stats/pages\n@desc Get pages statistics\n@returns(200) {total_pages: int} # Response\n\n@endpoint GET /enterprise/stats/pulls\n@desc Get pull request statistics\n@returns(200) {total_pulls: int, merged_pulls: int, mergeable_pulls: int, unmergeable_pulls: int} # Response\n\n@endpoint GET /enterprise/stats/repos\n@desc Get repository statistics\n@returns(200) {total_repos: int, root_repos: int, fork_repos: int, org_repos: int, total_pushes: int, total_wikis: int} # Response\n\n@endpoint GET /enterprise/stats/users\n@desc Get users statistics\n@returns(200) {total_users: int, admin_users: int, suspended_users: int} # Response\n\n@endgroup\n\n@group events\n@endpoint GET /events\n@desc List public events\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 503: Service unavailable}\n\n@endgroup\n\n@group feeds\n@endpoint GET /feeds\n@desc Get feeds\n@returns(200) {timeline_url: str, user_url: str, current_user_public_url: str, current_user_url: str, current_user_actor_url: str, current_user_organization_url: str, current_user_organization_urls: [str(uri)], _links: map{timeline: map{href: str, type: str}, user: map{href: str, type: str}, security_advisories: map{href: str, type: str}, current_user: map{href: str, type: str}, current_user_public: map{href: str, type: str}, current_user_actor: map{href: str, type: str}, current_user_organization: map{href: str, type: str}, current_user_organizations: [map]}} # Response\n\n@endgroup\n\n@group gists\n@endpoint GET /gists\n@desc List gists for the authenticated user\n@optional {since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden}\n\n@endpoint POST /gists\n@desc Create a gist\n@required {files: map # Names and content for the files that make up the gist}\n@optional {description: str # Description of the gist, public: any}\n@returns(201) {forks: [map]?, history: [map]?, fork_of: map?{url: str(uri), forks_url: str(uri), commits_url: str(uri), id: str, node_id: str, git_pull_url: str(uri), git_push_url: str(uri), html_url: str(uri), files: map, public: bool, created_at: str(date-time), updated_at: str(date-time), description: str?, comments: int, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments_url: str(uri), owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool, forks: [any], history: [any]}, url: str, forks_url: str, commits_url: str, id: str, node_id: str, git_pull_url: str, git_push_url: str, html_url: str, files: map, public: bool, created_at: str, updated_at: str, description: str?, comments: int, user: str?, comments_url: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool} # Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint GET /gists/public\n@desc List public gists\n@optional {since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 422: Validation failed}\n\n@endpoint GET /gists/starred\n@desc List starred gists\n@optional {since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /gists/{gist_id}\n@desc Get a gist\n@required {gist_id: str # gist_id parameter}\n@returns(200) {forks: [map]?, history: [map]?, fork_of: map?{url: str(uri), forks_url: str(uri), commits_url: str(uri), id: str, node_id: str, git_pull_url: str(uri), git_push_url: str(uri), html_url: str(uri), files: map, public: bool, created_at: str(date-time), updated_at: str(date-time), description: str?, comments: int, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments_url: str(uri), owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool, forks: [any], history: [any]}, url: str, forks_url: str, commits_url: str, id: str, node_id: str, git_pull_url: str, git_push_url: str, html_url: str, files: map, public: bool, created_at: str, updated_at: str, description: str?, comments: int, user: str?, comments_url: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool} # Response\n@errors {304: Not modified, 403: Forbidden Gist, 404: Resource not found}\n\n@endpoint PATCH /gists/{gist_id}\n@desc Update a gist\n@required {gist_id: str # gist_id parameter}\n@optional {description: str # Description of the gist, files: map # Names of files to be updated}\n@returns(200) {forks: [map]?, history: [map]?, fork_of: map?{url: str(uri), forks_url: str(uri), commits_url: str(uri), id: str, node_id: str, git_pull_url: str(uri), git_push_url: str(uri), html_url: str(uri), files: map, public: bool, created_at: str(date-time), updated_at: str(date-time), description: str?, comments: int, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments_url: str(uri), owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool, forks: [any], history: [any]}, url: str, forks_url: str, commits_url: str, id: str, node_id: str, git_pull_url: str, git_push_url: str, html_url: str, files: map, public: bool, created_at: str, updated_at: str, description: str?, comments: int, user: str?, comments_url: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool} # Response\n@errors {404: Resource not found, 422: Validation failed}\n\n@endpoint DELETE /gists/{gist_id}\n@desc Delete a gist\n@required {gist_id: str # gist_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /gists/{gist_id}/comments\n@desc List gist comments\n@required {gist_id: str # gist_id parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /gists/{gist_id}/comments\n@desc Create a gist comment\n@required {gist_id: str # gist_id parameter, body: str # The comment text.}\n@returns(201) {id: int, node_id: str, url: str(uri), body: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str} # Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /gists/{gist_id}/comments/{comment_id}\n@desc Get a gist comment\n@required {gist_id: str # gist_id parameter, comment_id: int # comment_id parameter}\n@returns(200) {id: int, node_id: str, url: str(uri), body: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str} # Response\n@errors {304: Not modified, 403: Forbidden Gist, 404: Resource not found}\n\n@endpoint PATCH /gists/{gist_id}/comments/{comment_id}\n@desc Update a gist comment\n@required {gist_id: str # gist_id parameter, comment_id: int # comment_id parameter, body: str # The comment text.}\n@returns(200) {id: int, node_id: str, url: str(uri), body: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /gists/{gist_id}/comments/{comment_id}\n@desc Delete a gist comment\n@required {gist_id: str # gist_id parameter, comment_id: int # comment_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /gists/{gist_id}/commits\n@desc List gist commits\n@required {gist_id: str # gist_id parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /gists/{gist_id}/forks\n@desc List gist forks\n@required {gist_id: str # gist_id parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /gists/{gist_id}/forks\n@desc Fork a gist\n@required {gist_id: str # gist_id parameter}\n@returns(201) {url: str(uri), forks_url: str(uri), commits_url: str(uri), id: str, node_id: str, git_pull_url: str(uri), git_push_url: str(uri), html_url: str(uri), files: map, public: bool, created_at: str(date-time), updated_at: str(date-time), description: str?, comments: int, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments_url: str(uri), owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool, forks: [any], history: [any]} # Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint GET /gists/{gist_id}/star\n@desc Check if a gist is starred\n@required {gist_id: str # gist_id parameter}\n@returns(204) Response if gist is starred\n@errors {304: Not modified, 403: Forbidden, 404: Not Found if gist is not starred}\n\n@endpoint PUT /gists/{gist_id}/star\n@desc Star a gist\n@required {gist_id: str # gist_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /gists/{gist_id}/star\n@desc Unstar a gist\n@required {gist_id: str # gist_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /gists/{gist_id}/{sha}\n@desc Get a gist revision\n@required {gist_id: str # gist_id parameter, sha: str}\n@returns(200) {forks: [map]?, history: [map]?, fork_of: map?{url: str(uri), forks_url: str(uri), commits_url: str(uri), id: str, node_id: str, git_pull_url: str(uri), git_push_url: str(uri), html_url: str(uri), files: map, public: bool, created_at: str(date-time), updated_at: str(date-time), description: str?, comments: int, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments_url: str(uri), owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool, forks: [any], history: [any]}, url: str, forks_url: str, commits_url: str, id: str, node_id: str, git_pull_url: str, git_push_url: str, html_url: str, files: map, public: bool, created_at: str, updated_at: str, description: str?, comments: int, user: str?, comments_url: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, truncated: bool} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endgroup\n\n@group gitignore\n@endpoint GET /gitignore/templates\n@desc Get all gitignore templates\n@returns(200) Response\n@errors {304: Not modified}\n\n@endpoint GET /gitignore/templates/{name}\n@desc Get a gitignore template\n@required {name: str}\n@returns(200) {name: str, source: str} # Response\n@errors {304: Not modified}\n\n@endgroup\n\n@group installation\n@endpoint GET /installation/repositories\n@desc List repositories accessible to the app installation\n@required {accept: str=application/vnd.github.machine-man-preview+json # This API is under preview and subject to change.}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, repositories: [map], repository_selection: str} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endgroup\n\n@group issues\n@endpoint GET /issues\n@desc List issues assigned to the authenticated user\n@optional {filter: str(assigned/created/mentioned/subscribed/repos/all)=assigned # Indicates which sorts of issues to return. Can be one of:   \\* `assigned`: Issues assigned to you   \\* `created`: Issues created by you   \\* `mentioned`: Issues mentioning you   \\* `subscribed`: Issues you're subscribed to updates for   \\* `all` or `repos`: All issues the authenticated user can see, regardless of participation or creation, state: str(open/closed/all)=open # Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`., labels: str # A list of comma separated label names. Example: `bug,ui,@high`, sort: str(created/updated/comments)=created # What to sort results by. Can be either `created`, `updated`, `comments`., direction: str(asc/desc)=desc # One of `asc` (ascending) or `desc` (descending)., since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., collab: bool, orgs: bool, owned: bool, pulls: bool, per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 404: Resource not found, 422: Validation failed}\n\n@endgroup\n\n@group licenses\n@endpoint GET /licenses\n@desc Get all commonly used licenses\n@optional {featured: bool, per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified}\n\n@endpoint GET /licenses/{license}\n@desc Get a license\n@required {license: str}\n@returns(200) {key: str, name: str, spdx_id: str?, url: str(uri)?, node_id: str, html_url: str(uri), description: str, implementation: str, permissions: [str], conditions: [str], limitations: [str], body: str, featured: bool} # Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endgroup\n\n@group markdown\n@endpoint POST /markdown\n@desc Render a Markdown document\n@required {text: str # The Markdown text to render in HTML.}\n@optional {mode: str(markdown/gfm)=markdown # The rendering mode., context: str # The repository context to use when creating references in `gfm` mode.}\n@returns(200) Response\n@errors {304: Not modified}\n\n@endpoint POST /markdown/raw\n@desc Render a Markdown document in raw mode\n@returns(200) Response\n@errors {304: Not modified}\n\n@endgroup\n\n@group meta\n@endpoint GET /meta\n@desc Get GitHub Enterprise Server meta information\n@returns(200) {verifiable_password_authentication: bool, packages: [str], dependabot: [str], installed_version: str, github_services_sha: str} # Response\n@errors {304: Not modified}\n\n@endgroup\n\n@group networks\n@endpoint GET /networks/{owner}/{repo}/events\n@desc List public events for a network of repositories\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {301: Moved permanently, 304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endgroup\n\n@group notifications\n@endpoint GET /notifications\n@desc List notifications for the authenticated user\n@optional {all: bool=false # If `true`, show notifications marked as read., participating: bool=false # If `true`, only shows notifications in which the user is directly participating or mentioned., since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., before: str(date-time) # Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed}\n\n@endpoint PUT /notifications\n@desc Mark notifications as read\n@optional {last_read_at: str(date-time) # Describes the last point that notifications were checked., read: bool # Whether the notification has been read.}\n@returns(202) {message: str} # Response\n@returns(205) Reset Content\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /notifications/threads/{thread_id}\n@desc Get a thread\n@required {thread_id: int # thread_id parameter}\n@returns(200) {id: str, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, anonymous_access_enabled: bool}, subject: map{title: str, url: str, latest_comment_url: str, type: str}, reason: str, unread: bool, updated_at: str, last_read_at: str?, url: str, subscription_url: str} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint PATCH /notifications/threads/{thread_id}\n@desc Mark a thread as read\n@required {thread_id: int # thread_id parameter}\n@returns(205) Reset Content\n@errors {304: Not modified, 403: Forbidden}\n\n@endpoint GET /notifications/threads/{thread_id}/subscription\n@desc Get a thread subscription for the authenticated user\n@required {thread_id: int # thread_id parameter}\n@returns(200) {subscribed: bool, ignored: bool, reason: str?, created_at: str(date-time)?, url: str(uri), thread_url: str(uri), repository_url: str(uri)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint PUT /notifications/threads/{thread_id}/subscription\n@desc Set a thread subscription\n@required {thread_id: int # thread_id parameter}\n@optional {ignored: bool=false # Whether to block all notifications from a thread.}\n@returns(200) {subscribed: bool, ignored: bool, reason: str?, created_at: str(date-time)?, url: str(uri), thread_url: str(uri), repository_url: str(uri)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint DELETE /notifications/threads/{thread_id}/subscription\n@desc Delete a thread subscription\n@required {thread_id: int # thread_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endgroup\n\n@group octocat\n@endpoint GET /octocat\n@desc Get Octocat\n@optional {s: str # The words to show in Octocat's speech bubble}\n@returns(200) Response\n\n@endgroup\n\n@group organizations\n@endpoint GET /organizations\n@desc List organizations\n@optional {since: int # An organization ID. Only return organizations with an ID greater than this ID., per_page: int=30 # Results per page (max 100)}\n@returns(200) Response\n@errors {304: Not modified}\n\n@endgroup\n\n@group orgs\n@endpoint GET /orgs/{org}\n@desc Get an organization\n@required {org: str}\n@returns(200) {login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, updated_at: str(date-time)} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /orgs/{org}\n@desc Update an organization\n@required {org: str}\n@optional {billing_email: str # Billing email address. This address is not publicized., company: str # The company name., email: str # The publicly visible email address., twitter_username: str # The Twitter username of the company., location: str # The location., name: str # The shorthand name of the company., description: str # The description of the company., has_organization_projects: bool # Toggles whether an organization can use organization projects., has_repository_projects: bool # Toggles whether repositories that belong to the organization can use repository projects., default_repository_permission: str(read/write/admin/none)=read # Default permission level members have for organization repositories:   \\* `read` - can pull, but not push to or administer this repository.   \\* `write` - can pull and push, but not administer this repository.   \\* `admin` - can pull, push, and administer this repository.   \\* `none` - no permissions granted by default., members_can_create_repositories: bool=true # Toggles the ability of non-admin organization members to create repositories. Can be one of:   \\* `true` - all organization members can create repositories.   \\* `false` - only organization owners can create repositories.   Default: `true`   **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details., members_can_create_internal_repositories: bool # Toggles whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. Can be one of:   \\* `true` - all organization members can create internal repositories.   \\* `false` - only organization owners can create internal repositories.   Default: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation., members_can_create_private_repositories: bool # Toggles whether organization members can create private repositories, which are visible to organization members with permission. Can be one of:   \\* `true` - all organization members can create private repositories.   \\* `false` - only organization owners can create private repositories.   Default: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation., members_can_create_public_repositories: bool # Toggles whether organization members can create public repositories, which are visible to anyone. Can be one of:   \\* `true` - all organization members can create public repositories.   \\* `false` - only organization owners can create public repositories.   Default: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation., members_allowed_repository_creation_type: str(all/private/none) # Specifies which types of repositories non-admin organization members can create. Can be one of:   \\* `all` - all organization members can create public and private repositories.   \\* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on GitHub Enterprise Cloud.   \\* `none` - only admin members can create repositories.   **Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details., blog: str}\n@returns(200) {login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, updated_at: str(date-time)} # Response\n@errors {409: Conflict, 415: Preview header missing, 422: Validation failed}\n@example_request {\"billing_email\":\"mona@github.com\",\"company\":\"GitHub\",\"email\":\"mona@github.com\",\"twitter_username\":\"github\",\"location\":\"San Francisco\",\"name\":\"github\",\"description\":\"GitHub, the company.\",\"default_repository_permission\":\"read\",\"members_can_create_repositories\":true,\"members_allowed_repository_creation_type\":\"all\"}\n\n@endpoint GET /orgs/{org}/events\n@desc List public organization events\n@required {org: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /orgs/{org}/hooks\n@desc List organization webhooks\n@required {org: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /orgs/{org}/hooks\n@desc Create an organization webhook\n@required {org: str, name: str # Must be passed as \"web\"., config: map{url!: str(uri), content_type: str, secret: str, insecure_ssl: any, username: str, password: str} # Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@2.19/rest/reference/orgs#create-hook-config-params).}\n@optional {events: [str]=push # Determines what [events](https://docs.github.com/enterprise-server@2.19/webhooks/event-payloads) the hook is triggered for., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.}\n@returns(201) {id: int, url: str(uri), ping_url: str(uri), name: str, events: [str], active: bool, config: map{url: str, insecure_ssl: str, content_type: str, secret: str}, updated_at: str(date-time), created_at: str(date-time), type: str} # Response\n@errors {404: Resource not found, 422: Validation failed}\n@example_request {\"name\":\"web\",\"active\":true,\"events\":[\"push\",\"pull_request\"],\"config\":{\"url\":\"http://example.com/webhook\",\"content_type\":\"json\"}}\n\n@endpoint GET /orgs/{org}/hooks/{hook_id}\n@desc Get an organization webhook\n@required {org: str, hook_id: int}\n@returns(200) {id: int, url: str(uri), ping_url: str(uri), name: str, events: [str], active: bool, config: map{url: str, insecure_ssl: str, content_type: str, secret: str}, updated_at: str(date-time), created_at: str(date-time), type: str} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /orgs/{org}/hooks/{hook_id}\n@desc Update an organization webhook\n@required {org: str, hook_id: int}\n@optional {config: map{url!: str(uri), content_type: str, secret: str, insecure_ssl: any} # Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@2.19/rest/reference/orgs#update-hook-config-params)., events: [str]=push # Determines what [events](https://docs.github.com/enterprise-server@2.19/webhooks/event-payloads) the hook is triggered for., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications., name: str}\n@returns(200) {id: int, url: str(uri), ping_url: str(uri), name: str, events: [str], active: bool, config: map{url: str, insecure_ssl: str, content_type: str, secret: str}, updated_at: str(date-time), created_at: str(date-time), type: str} # Response\n@errors {404: Resource not found, 422: Validation failed}\n@example_request {\"active\":true,\"events\":[\"pull_request\"]}\n\n@endpoint DELETE /orgs/{org}/hooks/{hook_id}\n@desc Delete an organization webhook\n@required {org: str, hook_id: int}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint POST /orgs/{org}/hooks/{hook_id}/pings\n@desc Ping an organization webhook\n@required {org: str, hook_id: int}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /orgs/{org}/installation\n@desc Get an organization installation for the authenticated app\n@required {accept: str=application/vnd.github.machine-man-preview+json # This API is under preview and subject to change., org: str}\n@returns(200) {id: int, account: any?, repository_selection: str, access_tokens_url: str(uri), repositories_url: str(uri), html_url: str(uri), app_id: int, target_id: int, target_type: str, permissions: map{deployments: str, checks: str, metadata: str, contents: str, pull_requests: str, statuses: str, issues: str, organization_administration: str}, events: [str], created_at: str(date-time), updated_at: str(date-time), single_file_name: str?, app_slug: str, suspended_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, suspended_at: str(date-time)?, contact_email: str?} # Response\n\n@endpoint GET /orgs/{org}/installations\n@desc List app installations for an organization\n@required {accept: str=application/vnd.github.machine-man-preview+json # This API is under preview and subject to change., org: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, installations: [map]} # Response\n\n@endpoint GET /orgs/{org}/issues\n@desc List organization issues assigned to the authenticated user\n@required {org: str}\n@optional {filter: str(assigned/created/mentioned/subscribed/repos/all)=assigned # Indicates which sorts of issues to return. Can be one of:   \\* `assigned`: Issues assigned to you   \\* `created`: Issues created by you   \\* `mentioned`: Issues mentioning you   \\* `subscribed`: Issues you're subscribed to updates for   \\* `all` or `repos`: All issues the authenticated user can see, regardless of participation or creation, state: str(open/closed/all)=open # Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`., labels: str # A list of comma separated label names. Example: `bug,ui,@high`, sort: str(created/updated/comments)=created # What to sort results by. Can be either `created`, `updated`, `comments`., direction: str(asc/desc)=desc # One of `asc` (ascending) or `desc` (descending)., since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /orgs/{org}/members\n@desc List organization members\n@required {org: str}\n@optional {filter: str(2fa_disabled/all)=all # Filter members returned in the list. Can be one of:   \\* `2fa_disabled` - Members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. Available for organization owners.   \\* `all` - All members the authenticated user can see., role: str(all/admin/member)=all # Filter members returned by their role. Can be one of:   \\* `all` - All members of the organization, regardless of role.   \\* `admin` - Organization owners.   \\* `member` - Non-owner organization members., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {302: Response if requester is not an organization member, 422: Validation failed}\n\n@endpoint GET /orgs/{org}/members/{username}\n@desc Check organization membership for a user\n@required {org: str, username: str}\n@returns(204) Response if requester is an organization member and user is a member\n@errors {302: Response if requester is not an organization member, 404: Not Found if requester is an organization member and user is not a member}\n\n@endpoint DELETE /orgs/{org}/members/{username}\n@desc Remove an organization member\n@required {org: str, username: str}\n@returns(204) Response\n@errors {403: Forbidden}\n\n@endpoint GET /orgs/{org}/memberships/{username}\n@desc Get organization membership for a user\n@required {org: str, username: str}\n@returns(200) {url: str(uri), state: str, role: str, organization_url: str(uri), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?}, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, permissions: map{can_create_repository: bool}} # Response\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint PUT /orgs/{org}/memberships/{username}\n@desc Set organization membership for a user\n@required {org: str, username: str}\n@optional {role: str(admin/member)=member # The role to give the user in the organization. Can be one of:   \\* `admin` - The user will become an owner of the organization.   \\* `member` - The user will become a non-owner member of the organization.}\n@returns(200) {url: str(uri), state: str, role: str, organization_url: str(uri), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?}, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, permissions: map{can_create_repository: bool}} # Response\n@errors {403: Forbidden, 422: Validation failed}\n\n@endpoint DELETE /orgs/{org}/memberships/{username}\n@desc Remove organization membership for a user\n@required {org: str, username: str}\n@returns(204) Response\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint GET /orgs/{org}/outside_collaborators\n@desc List outside collaborators for an organization\n@required {org: str}\n@optional {filter: str(2fa_disabled/all)=all # Filter the list of outside collaborators. Can be one of:   \\* `2fa_disabled`: Outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled.   \\* `all`: All outside collaborators., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint PUT /orgs/{org}/outside_collaborators/{username}\n@desc Convert an organization member to outside collaborator\n@required {org: str, username: str}\n@returns(202) User is getting converted asynchronously\n@returns(204) User was converted\n@errors {403: Forbidden if user is the last owner of the organization or not a member of the organization, 404: Resource not found}\n\n@endpoint DELETE /orgs/{org}/outside_collaborators/{username}\n@desc Remove outside collaborator from an organization\n@required {org: str, username: str}\n@returns(204) Response\n@errors {422: Unprocessable Entity if user is a member of the organization}\n\n@endpoint GET /orgs/{org}/pre-receive-hooks\n@desc List pre-receive hooks for an organization\n@required {org: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch., direction: str(asc/desc)=desc # One of `asc` (ascending) or `desc` (descending)., sort: str(created/updated/name)=created # The sort order for the response collection.}\n@returns(200) Response\n\n@endpoint GET /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Get a pre-receive hook for an organization\n@required {org: str, pre_receive_hook_id: int # pre_receive_hook_id parameter}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str, allow_downstream_configuration: bool} # Response\n\n@endpoint PATCH /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Update pre-receive hook enforcement for an organization\n@required {org: str, pre_receive_hook_id: int # pre_receive_hook_id parameter}\n@optional {enforcement: str # The state of enforcement for the hook on this repository., allow_downstream_configuration: bool # Whether repositories can override enforcement.}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str, allow_downstream_configuration: bool} # Response\n@example_request {\"enforcement\":\"enabled\",\"allow_downstream_configuration\":false}\n\n@endpoint DELETE /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Remove pre-receive hook enforcement for an organization\n@required {org: str, pre_receive_hook_id: int # pre_receive_hook_id parameter}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str, allow_downstream_configuration: bool} # Response\n\n@endpoint GET /orgs/{org}/projects\n@desc List organization projects\n@required {org: str}\n@optional {state: str(open/closed/all)=open # Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint POST /orgs/{org}/projects\n@desc Create an organization project\n@required {org: str, name: str # The name of the project.}\n@optional {body: str # The description of the project.}\n@returns(201) {owner_url: str(uri), url: str(uri), html_url: str(uri), columns_url: str(uri), id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), organization_permission: str, private: bool} # Response\n@errors {401: Requires authentication, 403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed}\n@example_request {\"name\":\"Organization Roadmap\",\"body\":\"High-level roadmap for the upcoming year.\"}\n\n@endpoint GET /orgs/{org}/public_members\n@desc List public organization members\n@required {org: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /orgs/{org}/public_members/{username}\n@desc Check public organization membership for a user\n@required {org: str, username: str}\n@returns(204) Response if user is a public member\n@errors {404: Not Found if user is not a public member}\n\n@endpoint PUT /orgs/{org}/public_members/{username}\n@desc Set public organization membership for the authenticated user\n@required {org: str, username: str}\n@returns(204) Response\n@errors {403: Forbidden}\n\n@endpoint DELETE /orgs/{org}/public_members/{username}\n@desc Remove public organization membership for the authenticated user\n@required {org: str, username: str}\n@returns(204) Response\n\n@endpoint GET /orgs/{org}/repos\n@desc List organization repositories\n@required {org: str}\n@optional {type: str(all/public/private/forks/sources/member/internal) # Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`. However, the `internal` value is not yet supported when a GitHub App calls this API with an installation access token., sort: str(created/updated/pushed/full_name)=created # Can be one of `created`, `updated`, `pushed`, `full_name`., direction: str(asc/desc) # Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc`, per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /orgs/{org}/repos\n@desc Create an organization repository\n@required {org: str, name: str # The name of the repository.}\n@optional {description: str # A short description of the repository., homepage: str # A URL with more information about the repository., private: bool=false # Whether the repository is private., visibility: str(public/private/visibility/internal) # Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. Note: For GitHub Enterprise Server and GitHub AE, this endpoint will only list repositories available to all users on the enterprise. For more information, see \"[Creating an internal repository](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)\" in the GitHub Help documentation.   The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header., has_issues: bool=true # Either `true` to enable issues for this repository or `false` to disable them., has_projects: bool=true # Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error., has_wiki: bool=true # Either `true` to enable the wiki for this repository or `false` to disable it., is_template: bool=false # Either `true` to make this repo available as a template repository or `false` to prevent it., team_id: int # The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization., auto_init: bool=false # Pass `true` to create an initial commit with empty README., gitignore_template: str # Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\"., license_template: str # Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\"., allow_squash_merge: bool=true # Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging., allow_merge_commit: bool=true # Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits., allow_rebase_merge: bool=true # Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging., delete_branch_on_merge: bool=false # Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.}\n@returns(201) {id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool} # Response\n@errors {403: Forbidden, 422: Validation failed}\n@example_request {\"name\":\"Hello-World\",\"description\":\"This is your first repository\",\"homepage\":\"https://github.com\",\"private\":false,\"has_issues\":true,\"has_projects\":true,\"has_wiki\":true}\n\n@endpoint GET /orgs/{org}/teams\n@desc List teams\n@required {org: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {403: Forbidden}\n\n@endpoint POST /orgs/{org}/teams\n@desc Create a team\n@required {org: str, name: str # The name of the team.}\n@optional {description: str # The description of the team., maintainers: [str] # List GitHub IDs for organization members who will become team maintainers., repo_names: [str] # The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to., privacy: str(secret/closed) # The level of privacy this team should have. The options are:   **For a non-nested team:**   \\* `secret` - only visible to organization owners and members of this team.   \\* `closed` - visible to all members of this organization.   Default: `secret`   **For a parent or child team:**   \\* `closed` - visible to all members of this organization.   Default for child team: `closed`, permission: str(pull/push/admin)=pull # **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of:   \\* `pull` - team members can pull, but not push to or administer newly-added repositories.   \\* `push` - team members can pull and push, but not administer newly-added repositories.   \\* `admin` - team members can pull, push and administer newly-added repositories., parent_team_id: int # The ID of a team to set as the parent team.}\n@returns(201) {id: int, node_id: str, url: str(uri), html_url: str(uri), name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}, members_count: int, repos_count: int, created_at: str(date-time), updated_at: str(date-time), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, updated_at: str(date-time)}, ldap_dn: str} # Response\n@errors {403: Forbidden, 422: Validation failed}\n@example_request {\"name\":\"Justice League\",\"description\":\"A great team\",\"permission\":\"admin\",\"privacy\":\"closed\"}\n\n@endpoint GET /orgs/{org}/teams/{team_slug}\n@desc Get a team by name\n@required {org: str, team_slug: str # team_slug parameter}\n@returns(200) {id: int, node_id: str, url: str(uri), html_url: str(uri), name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}, members_count: int, repos_count: int, created_at: str(date-time), updated_at: str(date-time), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, updated_at: str(date-time)}, ldap_dn: str} # Response\n@errors {404: Resource not found}\n\n@endgroup\n\n@group projects\n@endpoint GET /projects/columns/cards/{card_id}\n@desc Get a project card\n@required {card_id: int # card_id parameter}\n@returns(200) {url: str(uri), id: int, node_id: str, note: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), archived: bool, column_name: str, project_id: str, column_url: str(uri), content_url: str(uri), project_url: str(uri)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint PATCH /projects/columns/cards/{card_id}\n@desc Update an existing project card\n@required {card_id: int # card_id parameter}\n@optional {note: str # The project card's note, archived: bool # Whether or not the card is archived}\n@returns(200) {url: str(uri), id: int, node_id: str, note: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), archived: bool, column_name: str, project_id: str, column_url: str(uri), content_url: str(uri), project_url: str(uri)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint DELETE /projects/columns/cards/{card_id}\n@desc Delete a project card\n@required {card_id: int # card_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /projects/columns/cards/{card_id}/moves\n@desc Move a project card\n@required {card_id: int # card_id parameter, position: str # The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.}\n@optional {column_id: int # The unique identifier of the column the card should be moved to}\n@returns(201) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, 503: Response}\n\n@endpoint GET /projects/columns/{column_id}\n@desc Get a project column\n@required {column_id: int # column_id parameter}\n@returns(200) {url: str(uri), project_url: str(uri), cards_url: str(uri), id: int, node_id: str, name: str, created_at: str(date-time), updated_at: str(date-time)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint PATCH /projects/columns/{column_id}\n@desc Update an existing project column\n@required {column_id: int # column_id parameter, name: str # Name of the project column}\n@returns(200) {url: str(uri), project_url: str(uri), cards_url: str(uri), id: int, node_id: str, name: str, created_at: str(date-time), updated_at: str(date-time)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint DELETE /projects/columns/{column_id}\n@desc Delete a project column\n@required {column_id: int # column_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /projects/columns/{column_id}/cards\n@desc List project cards\n@required {column_id: int # column_id parameter}\n@optional {archived_state: str(all/archived/not_archived)=not_archived # Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint POST /projects/columns/{column_id}/cards\n@desc Create a project card\n@required {column_id: int # column_id parameter}\n@returns(201) {url: str(uri), id: int, node_id: str, note: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), archived: bool, column_name: str, project_id: str, column_url: str(uri), content_url: str(uri), project_url: str(uri)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed, 503: Response}\n\n@endpoint POST /projects/columns/{column_id}/moves\n@desc Move a project column\n@required {column_id: int # column_id parameter, position: str # The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.}\n@returns(201) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed}\n\n@endpoint GET /projects/{project_id}\n@desc Get a project\n@required {project_id: int}\n@returns(200) {owner_url: str(uri), url: str(uri), html_url: str(uri), columns_url: str(uri), id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), organization_permission: str, private: bool} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint PATCH /projects/{project_id}\n@desc Update a project\n@required {project_id: int}\n@optional {name: str # Name of the project, body: str # Body of the project, state: str # State of the project; either 'open' or 'closed', organization_permission: str(read/write/admin/none) # The baseline permission that all organization members have on this project, private: bool # Whether or not this project can be seen by everyone.}\n@returns(200) {owner_url: str(uri), url: str(uri), html_url: str(uri), columns_url: str(uri), id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), organization_permission: str, private: bool} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Not Found if the authenticated user does not have access to the project, 410: Gone, 422: Validation failed}\n\n@endpoint DELETE /projects/{project_id}\n@desc Delete a project\n@required {project_id: int}\n@returns(204) Delete Success\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 410: Gone}\n\n@endpoint GET /projects/{project_id}/collaborators\n@desc List project collaborators\n@required {project_id: int}\n@optional {affiliation: str(outside/direct/all)=all # Filters the collaborators by their affiliation. Can be one of:   \\* `outside`: Outside collaborators of a project that are not a member of the project's organization.   \\* `direct`: Collaborators with permissions to a project, regardless of organization membership status.   \\* `all`: All collaborators the authenticated user can see., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 415: Preview header missing, 422: Validation failed}\n\n@endpoint PUT /projects/{project_id}/collaborators/{username}\n@desc Add project collaborator\n@required {project_id: int, username: str}\n@optional {permission: str(read/write/admin)=write # The permission to grant the collaborator.}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 415: Preview header missing, 422: Validation failed}\n\n@endpoint DELETE /projects/{project_id}/collaborators/{username}\n@desc Remove user as a collaborator\n@required {project_id: int, username: str}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 415: Preview header missing, 422: Validation failed}\n\n@endpoint GET /projects/{project_id}/collaborators/{username}/permission\n@desc Get project permission for a user\n@required {project_id: int, username: str}\n@returns(200) {permission: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 415: Preview header missing, 422: Validation failed}\n\n@endpoint GET /projects/{project_id}/columns\n@desc List project columns\n@required {project_id: int}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint POST /projects/{project_id}/columns\n@desc Create a project column\n@required {project_id: int, name: str # Name of the project column}\n@returns(201) {url: str(uri), project_url: str(uri), cards_url: str(uri), id: int, node_id: str, name: str, created_at: str(date-time), updated_at: str(date-time)} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed}\n\n@endgroup\n\n@group rate_limit\n@endpoint GET /rate_limit\n@desc Get rate limit status for the authenticated user\n@returns(200) {resources: map{core: map{limit: int, remaining: int, reset: int, used: int}, graphql: map{limit: int, remaining: int, reset: int, used: int}, search: map{limit: int, remaining: int, reset: int, used: int}, source_import: map{limit: int, remaining: int, reset: int, used: int}, integration_manifest: map{limit: int, remaining: int, reset: int, used: int}, code_scanning_upload: map{limit: int, remaining: int, reset: int, used: int}}, rate: map{limit: int, remaining: int, reset: int, used: int}} # Response\n@errors {304: Not modified, 404: Resource not found}\n\n@endgroup\n\n@group reactions\n@endpoint DELETE /reactions/{reaction_id}\n@desc Delete a reaction\n@required {accept: str=application/vnd.github.squirrel-girl-preview+json # This API is under preview and subject to change., reaction_id: int}\n@returns(204) Response\n\n@endgroup\n\n@group repos\n@endpoint GET /repos/{owner}/{repo}\n@desc Get a repository\n@required {owner: str, repo: str}\n@returns(200) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time), created_at: str(date-time), updated_at: str(date-time), permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parent: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, source: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, forks: int, master_branch: str, open_issues: int, watchers: int, anonymous_access_enabled: bool, code_of_conduct: map{url: str(uri), key: str, name: str, html_url: str(uri)?}} # Response\n@errors {301: Moved permanently, 403: Forbidden, 404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}\n@desc Update a repository\n@required {owner: str, repo: str}\n@optional {name: str # The name of the repository., description: str # A short description of the repository., homepage: str # A URL with more information about the repository., private: bool=false # Either `true` to make the repository private or `false` to make it public. Default: `false`.   **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private., visibility: str(public/private/visibility/internal) # Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. The `visibility` parameter overrides the `private` parameter when you use both along with the `nebula-preview` preview header., has_issues: bool=true # Either `true` to enable issues for this repository or `false` to disable them., has_projects: bool=true # Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error., has_wiki: bool=true # Either `true` to enable the wiki for this repository or `false` to disable it., is_template: bool=false # Either `true` to make this repo available as a template repository or `false` to prevent it., default_branch: str # Updates the default branch for this repository., allow_squash_merge: bool=true # Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging., allow_merge_commit: bool=true # Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits., allow_rebase_merge: bool=true # Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging., delete_branch_on_merge: bool=false # Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion., archived: bool=false # `true` to archive this repository. **Note**: You cannot unarchive repositories through the API., allow_forking: bool=false # Either `true` to allow private forks, or `false` to prevent private forks.}\n@returns(200) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time), created_at: str(date-time), updated_at: str(date-time), permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parent: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, source: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, forks: int, master_branch: str, open_issues: int, watchers: int, anonymous_access_enabled: bool, code_of_conduct: map{url: str(uri), key: str, name: str, html_url: str(uri)?}} # Response\n@errors {307: Temporary Redirect, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n@example_request {\"name\":\"Hello-World\",\"description\":\"This is your first repository\",\"homepage\":\"https://github.com\",\"private\":true,\"has_issues\":true,\"has_projects\":true,\"has_wiki\":true}\n\n@endpoint DELETE /repos/{owner}/{repo}\n@desc Delete a repository\n@required {owner: str, repo: str}\n@returns(204) Response\n@errors {307: Temporary Redirect, 403: If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:, 404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/assignees\n@desc List assignees\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/assignees/{assignee}\n@desc Check if a user can be assigned\n@required {owner: str, repo: str, assignee: str}\n@returns(204) If the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned.\n@errors {404: Otherwise a `404` status code is returned.}\n\n@endpoint GET /repos/{owner}/{repo}/branches\n@desc List branches\n@required {owner: str, repo: str}\n@optional {protected: bool # Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}\n@desc Get a branch\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) {name: str, commit: map{url: str(uri), sha: str, node_id: str, html_url: str(uri), comments_url: str(uri), commit: map{url: str(uri), author: map?{name: str, email: str, date: str}, committer: map?{name: str, email: str, date: str}, message: str, comment_count: int, tree: map{sha: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}}, author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, committer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parents: [map], stats: map{additions: int, deletions: int, total: int}, files: [map]}, _links: map{html: str, self: str(uri)}, protected: bool, protection: map{url: str, enabled: bool, required_status_checks: map{url: str, enforcement_level: str, contexts: [str], contexts_url: str, strict: bool}, enforce_admins: map{url: str(uri), enabled: bool}, required_pull_request_reviews: map{url: str(uri), dismissal_restrictions: map{users: [map], teams: [map], url: str, users_url: str, teams_url: str}, dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int}, restrictions: map{url: str(uri), users_url: str(uri), teams_url: str(uri), apps_url: str(uri), users: [map], teams: [map], apps: [map], restrictions: [map]}, required_conversation_resolution: map{enabled: bool}, name: str, protection_url: str, required_signatures: map{url: str(uri), enabled: bool}}, protection_url: str(uri), pattern: str, required_approving_review_count: int} # Response\n@errors {301: Moved permanently, 404: Resource not found, 415: Preview header missing}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection\n@desc Get branch protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) {url: str, enabled: bool, required_status_checks: map{url: str, enforcement_level: str, contexts: [str], contexts_url: str, strict: bool}, enforce_admins: map{url: str(uri), enabled: bool}, required_pull_request_reviews: map{url: str(uri), dismissal_restrictions: map{users: [map], teams: [map], url: str, users_url: str, teams_url: str}, dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int}, restrictions: map{url: str(uri), users_url: str(uri), teams_url: str(uri), apps_url: str(uri), users: [map], teams: [map], apps: [map], restrictions: [map]}, required_conversation_resolution: map{enabled: bool}, name: str, protection_url: str, required_signatures: map{url: str(uri), enabled: bool}} # Response\n@errors {404: Resource not found}\n\n@endpoint PUT /repos/{owner}/{repo}/branches/{branch}/protection\n@desc Update branch protection\n@required {owner: str, repo: str, branch: str # The name of the branch., required_status_checks: map{strict!: bool, contexts!: [str]} # Require status checks to pass before merging. Set to `null` to disable., enforce_admins: bool # Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable., required_pull_request_reviews: map{dismissal_restrictions: map, dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int} # Require at least one approving review on a pull request, before merging. Set to `null` to disable., restrictions: map{users!: [str], teams!: [str], apps: [str]} # Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable.}\n@optional {required_linear_history: bool # Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see \"[Requiring a linear commit history](https://help.github.com/github/administering-a-repository/requiring-a-linear-commit-history)\" in the GitHub Help documentation., allow_force_pushes: bool # Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://help.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.\", allow_deletions: bool # Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://help.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation., required_conversation_resolution: bool # Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.}\n@returns(200) {url: str(uri), required_status_checks: map{url: str(uri), strict: bool, contexts: [str], contexts_url: str(uri)}, required_pull_request_reviews: map{url: str(uri), dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int, dismissal_restrictions: map{url: str(uri), users_url: str(uri), teams_url: str(uri), users: [map], teams: [map]}}, required_signatures: map{url: str(uri), enabled: bool}, enforce_admins: map{url: str(uri), enabled: bool}, required_linear_history: map{enabled: bool}, allow_force_pushes: map{enabled: bool}, allow_deletions: map{enabled: bool}, restrictions: map{url: str(uri), users_url: str(uri), teams_url: str(uri), apps_url: str(uri), users: [map], teams: [map], apps: [map], restrictions: [map]}, required_conversation_resolution: map{enabled: bool}} # Response\n@errors {403: Forbidden, 404: Resource not found, 415: Preview header missing, 422: Validation failed}\n@example_request {\"required_status_checks\":{\"strict\":true,\"contexts\":[\"continuous-integration/travis-ci\"]},\"enforce_admins\":true,\"required_pull_request_reviews\":{\"dismissal_restrictions\":{\"users\":[\"octocat\"],\"teams\":[\"justice-league\"]},\"dismiss_stale_reviews\":true,\"require_code_owner_reviews\":true,\"required_approving_review_count\":2},\"restrictions\":{\"users\":[\"octocat\"],\"teams\":[\"justice-league\"],\"apps\":[\"super-ci\"]},\"required_linear_history\":true,\"allow_force_pushes\":true,\"allow_deletions\":true,\"required_conversation_resolution\":true}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection\n@desc Delete branch protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(204) Response\n@errors {403: Forbidden}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\n@desc Get admin branch protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) {url: str(uri), enabled: bool} # Response\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\n@desc Set admin branch protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) {url: str(uri), enabled: bool} # Response\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\n@desc Delete admin branch protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\n@desc Get pull request review protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) {url: str(uri), dismissal_restrictions: map{users: [map], teams: [map], url: str, users_url: str, teams_url: str}, dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int} # Response\n\n@endpoint PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\n@desc Update pull request review protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@optional {dismissal_restrictions: map{users: [str], teams: [str]} # Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories., dismiss_stale_reviews: bool # Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit., require_code_owner_reviews: bool # Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed., required_approving_review_count: int # Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6.}\n@returns(200) {url: str(uri), dismissal_restrictions: map{users: [map], teams: [map], url: str, users_url: str, teams_url: str}, dismiss_stale_reviews: bool, require_code_owner_reviews: bool, required_approving_review_count: int} # Response\n@errors {422: Validation failed}\n@example_request {\"dismissal_restrictions\":{\"users\":[\"octocat\"],\"teams\":[\"justice-league\"]},\"dismiss_stale_reviews\":true,\"require_code_owner_reviews\":true,\"required_approving_review_count\":2}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\n@desc Delete pull request review protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\n@desc Get commit signature protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) {url: str(uri), enabled: bool} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\n@desc Create commit signature protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) {url: str(uri), enabled: bool} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\n@desc Delete commit signature protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\n@desc Get status checks protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) {url: str(uri), strict: bool, contexts: [str], contexts_url: str(uri)} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\n@desc Update status check protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@optional {strict: bool # Require branches to be up to date before merging., contexts: [str] # The list of status checks to require in order to merge into this branch}\n@returns(200) {url: str(uri), strict: bool, contexts: [str], contexts_url: str(uri)} # Response\n@errors {404: Resource not found, 422: Validation failed}\n@example_request {\"strict\":true,\"contexts\":[\"continuous-integration/travis-ci\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\n@desc Remove status check protection\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n@desc Get all status check contexts\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n@desc Add status check contexts\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n@desc Set status check contexts\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {404: Resource not found, 422: Validation failed}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\n@desc Remove status check contexts\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {404: Resource not found, 422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\n@desc Get access restrictions\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) {url: str(uri), users_url: str(uri), teams_url: str(uri), apps_url: str(uri), users: [map], teams: [map], apps: [map], restrictions: [map]} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\n@desc Delete access restrictions\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n@desc Get apps with access to the protected branch\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n@desc Add app access restrictions\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n@desc Set app access restrictions\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\n@desc Remove app access restrictions\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\n@desc Get teams with access to the protected branch\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\n@desc Add team access restrictions\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\n@desc Set team access restrictions\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\n@desc Remove team access restrictions\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\n@desc Get users with access to the protected branch\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\n@desc Add user access restrictions\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\n@desc Set user access restrictions\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\n@desc Remove user access restrictions\n@required {owner: str, repo: str, branch: str # The name of the branch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint POST /repos/{owner}/{repo}/check-runs\n@desc Create a check run\n@required {owner: str, repo: str, name: str # The name of the check. For example, \"code-coverage\"., head_sha: str # The SHA of the commit.}\n@optional {details_url: str # The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used., external_id: str # A reference for the run on the integrator's system., status: str(queued/in_progress/completed)=queued # The current status. Can be one of `queued`, `in_progress`, or `completed`., started_at: str(date-time) # The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., conclusion: str(action_required/cancelled/failure/neutral/success/skipped/stale/timed_out) # **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `action_required`, `cancelled`, `failure`, `neutral`, `success`, `skipped`, `stale`, or `timed_out`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`.   **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this., completed_at: str(date-time) # The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., output: map{title!: str, summary!: str, text: str, annotations: [map], images: [map]} # Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/enterprise-server@2.19/rest/reference/checks#output-object) description., actions: [map{label!: str, description!: str, identifier!: str}] # Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-server@2.19/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://docs.github.com/enterprise-server@2.19/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@2.19/rest/reference/checks#check-runs-and-requested-actions).\" To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@2.19/rest/reference/checks#check-runs-and-requested-actions).\"}\n@returns(201) {id: int, head_sha: str, node_id: str, external_id: str?, url: str, html_url: str?, details_url: str?, status: str, conclusion: str?, started_at: str(date-time)?, completed_at: str(date-time)?, output: map{title: str?, summary: str?, text: str?, annotations_count: int, annotations_url: str(uri)}, name: str, check_suite: map?{id: int}, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, pull_requests: any, deployment: map{url: str(uri), id: int, node_id: str, task: str, original_environment: str, environment: str, description: str?, created_at: str(date-time), updated_at: str(date-time), statuses_url: str(uri), repository_url: str(uri), transient_environment: bool, production_environment: bool, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}}} # Response\n@example_request {\"name\":\"mighty_readme\",\"head_sha\":\"ce587453ced02b1526dfb4cb910479d431683101\",\"status\":\"in_progress\",\"external_id\":\"42\",\"started_at\":\"2018-05-04T01:14:52Z\",\"output\":{\"title\":\"Mighty Readme report\",\"summary\":\"\",\"text\":\"\"}}\n\n@endpoint GET /repos/{owner}/{repo}/check-runs/{check_run_id}\n@desc Get a check run\n@required {owner: str, repo: str, check_run_id: int # check_run_id parameter}\n@returns(200) {id: int, head_sha: str, node_id: str, external_id: str?, url: str, html_url: str?, details_url: str?, status: str, conclusion: str?, started_at: str(date-time)?, completed_at: str(date-time)?, output: map{title: str?, summary: str?, text: str?, annotations_count: int, annotations_url: str(uri)}, name: str, check_suite: map?{id: int}, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, pull_requests: any, deployment: map{url: str(uri), id: int, node_id: str, task: str, original_environment: str, environment: str, description: str?, created_at: str(date-time), updated_at: str(date-time), statuses_url: str(uri), repository_url: str(uri), transient_environment: bool, production_environment: bool, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}}} # Response\n\n@endpoint PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}\n@desc Update a check run\n@required {owner: str, repo: str, check_run_id: int # check_run_id parameter}\n@optional {name: str # The name of the check. For example, \"code-coverage\"., details_url: str # The URL of the integrator's site that has the full details of the check., external_id: str # A reference for the run on the integrator's system., started_at: str(date-time) # This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., status: str(queued/in_progress/completed) # The current status. Can be one of `queued`, `in_progress`, or `completed`., conclusion: str(action_required/cancelled/failure/neutral/success/skipped/stale/timed_out) # **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `action_required`, `cancelled`, `failure`, `neutral`, `success`, `skipped`, `stale`, or `timed_out`.   **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this., completed_at: str(date-time) # The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., output: map{title: str, summary!: str, text: str, annotations: [map], images: [map]} # Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/enterprise-server@2.19/rest/reference/checks#output-object-1) description., actions: [map{label!: str, description!: str, identifier!: str}] # Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://docs.github.com/enterprise-server@2.19/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@2.19/rest/reference/checks#check-runs-and-requested-actions).\"}\n@returns(200) {id: int, head_sha: str, node_id: str, external_id: str?, url: str, html_url: str?, details_url: str?, status: str, conclusion: str?, started_at: str(date-time)?, completed_at: str(date-time)?, output: map{title: str?, summary: str?, text: str?, annotations_count: int, annotations_url: str(uri)}, name: str, check_suite: map?{id: int}, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, pull_requests: any, deployment: map{url: str(uri), id: int, node_id: str, task: str, original_environment: str, environment: str, description: str?, created_at: str(date-time), updated_at: str(date-time), statuses_url: str(uri), repository_url: str(uri), transient_environment: bool, production_environment: bool, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}}} # Response\n@example_request {\"name\":\"mighty_readme\",\"started_at\":\"2018-05-04T01:14:52Z\",\"status\":\"completed\",\"conclusion\":\"success\",\"completed_at\":\"2018-05-04T01:14:52Z\",\"output\":{\"title\":\"Mighty Readme report\",\"summary\":\"There are 0 failures, 2 warnings, and 1 notices.\",\"text\":\"You may have some misspelled words on lines 2 and 4. You also may want to add a section in your README about how to install your app.\",\"annotations\":[{\"path\":\"README.md\",\"annotation_level\":\"warning\",\"title\":\"Spell Checker\",\"message\":\"Check your spelling for 'banaas'.\",\"raw_details\":\"Do you mean 'bananas' or 'banana'?\",\"start_line\":2,\"end_line\":2},{\"path\":\"README.md\",\"annotation_level\":\"warning\",\"title\":\"Spell Checker\",\"message\":\"Check your spelling for 'aples'\",\"raw_details\":\"Do you mean 'apples' or 'Naples'\",\"start_line\":4,\"end_line\":4}],\"images\":[{\"alt\":\"Super bananas\",\"image_url\":\"http://example.com/images/42\"}]}}\n\n@endpoint GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\n@desc List check run annotations\n@required {owner: str, repo: str, check_run_id: int # check_run_id parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/check-suites\n@desc Create a check suite\n@required {owner: str, repo: str, head_sha: str # The sha of the head commit.}\n@returns(200) {id: int, node_id: str, head_branch: str?, head_sha: str, status: str?, conclusion: str?, url: str?, before: str?, after: str?, pull_requests: [map]?, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, anonymous_access_enabled: bool}, created_at: str(date-time)?, updated_at: str(date-time)?, head_commit: map{id: str, tree_id: str, message: str, timestamp: str(date-time), author: map?{name: str, email: str}, committer: map?{name: str, email: str}}, latest_check_runs_count: int, check_runs_url: str} # when the suite already existed\n@returns(201) {id: int, node_id: str, head_branch: str?, head_sha: str, status: str?, conclusion: str?, url: str?, before: str?, after: str?, pull_requests: [map]?, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, anonymous_access_enabled: bool}, created_at: str(date-time)?, updated_at: str(date-time)?, head_commit: map{id: str, tree_id: str, message: str, timestamp: str(date-time), author: map?{name: str, email: str}, committer: map?{name: str, email: str}}, latest_check_runs_count: int, check_runs_url: str} # Response when the suite was created\n@example_request {\"head_sha\":\"d6fde92930d4715a2b49857d24b940956b26d2d3\"}\n\n@endpoint PATCH /repos/{owner}/{repo}/check-suites/preferences\n@desc Update repository preferences for check suites\n@required {owner: str, repo: str}\n@optional {auto_trigger_checks: [map{app_id!: int, setting!: bool}] # Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://docs.github.com/enterprise-server@2.19/rest/reference/checks#auto_trigger_checks-object) description for details.}\n@returns(200) {preferences: map{auto_trigger_checks: [map]}, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, anonymous_access_enabled: bool}} # Response\n@example_request {\"auto_trigger_checks\":[{\"app_id\":4,\"setting\":false}]}\n\n@endpoint GET /repos/{owner}/{repo}/check-suites/{check_suite_id}\n@desc Get a check suite\n@required {owner: str, repo: str, check_suite_id: int # check_suite_id parameter}\n@returns(200) {id: int, node_id: str, head_branch: str?, head_sha: str, status: str?, conclusion: str?, url: str?, before: str?, after: str?, pull_requests: [map]?, app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, anonymous_access_enabled: bool}, created_at: str(date-time)?, updated_at: str(date-time)?, head_commit: map{id: str, tree_id: str, message: str, timestamp: str(date-time), author: map?{name: str, email: str}, committer: map?{name: str, email: str}}, latest_check_runs_count: int, check_runs_url: str} # Response\n\n@endpoint GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\n@desc List check runs in a check suite\n@required {owner: str, repo: str, check_suite_id: int # check_suite_id parameter}\n@optional {check_name: str # Returns check runs with the specified `name`., status: str(queued/in_progress/completed) # Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`., filter: str(latest/all)=latest # Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, check_runs: [map]} # Response\n\n@endpoint POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest\n@desc Rerequest a check suite\n@required {owner: str, repo: str, check_suite_id: int # check_suite_id parameter}\n@returns(201) Response\n\n@endpoint GET /repos/{owner}/{repo}/collaborators\n@desc List repository collaborators\n@required {owner: str, repo: str}\n@optional {affiliation: str(outside/direct/all)=all # Filter collaborators returned by their affiliation. Can be one of:   \\* `outside`: All outside collaborators of an organization-owned repository.   \\* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status.   \\* `all`: All collaborators the authenticated user can see., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/collaborators/{username}\n@desc Check if a user is a repository collaborator\n@required {owner: str, repo: str, username: str}\n@returns(204) Response if user is a collaborator\n@errors {404: Not Found if user is not a collaborator}\n\n@endpoint PUT /repos/{owner}/{repo}/collaborators/{username}\n@desc Add a repository collaborator\n@required {owner: str, repo: str, username: str}\n@optional {permission: str(pull/push/admin/maintain/triage)=push # The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of:   \\* `pull` - can pull, but not push to or administer this repository.   \\* `push` - can pull and push, but not administer this repository.   \\* `admin` - can pull, push and administer this repository.   \\* `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.   \\* `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.  \\* custom repository role name - Can assign a custom repository role if the owning organization has defined any., permissions: str}\n@returns(201) {id: int, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, anonymous_access_enabled: bool}, invitee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, inviter: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, permissions: str, created_at: str(date-time), expired: bool, url: str, html_url: str, node_id: str} # Response when a new invitation is created\n@returns(204) Response when person is already a collaborator\n@errors {403: Forbidden, 422: Validation failed}\n\n@endpoint DELETE /repos/{owner}/{repo}/collaborators/{username}\n@desc Remove a repository collaborator\n@required {owner: str, repo: str, username: str}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/collaborators/{username}/permission\n@desc Get repository permissions for a user\n@required {owner: str, repo: str, username: str}\n@returns(200) {permission: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # if user has admin permissions\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/comments\n@desc List commit comments for a repository\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/comments/{comment_id}\n@desc Get a commit comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter}\n@returns(200) {html_url: str(uri), url: str(uri), id: int, node_id: str, body: str, path: str?, position: int?, line: int?, commit_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/comments/{comment_id}\n@desc Update a commit comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter, body: str # The contents of the comment}\n@returns(200) {html_url: str(uri), url: str(uri), id: int, node_id: str, body: str, path: str?, position: int?, line: int?, commit_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {404: Resource not found}\n@example_request {\"body\":\"Nice change\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/comments/{comment_id}\n@desc Delete a commit comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\n@desc List reactions for a commit comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a commit comment., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found, 415: Preview header missing}\n\n@endpoint POST /repos/{owner}/{repo}/comments/{comment_id}/reactions\n@desc Create reaction for a commit comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter, content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types) to add to the commit comment.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction exists\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction created\n@errors {415: Preview header missing, 422: Validation failed}\n@example_request {\"content\":\"heart\"}\n\n@endpoint GET /repos/{owner}/{repo}/commits\n@desc List commits\n@required {owner: str, repo: str}\n@optional {sha: str # SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`)., path: str # Only commits containing this file path will be returned., author: str # GitHub login or email address by which to filter by commit author., since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., until: str(date-time) # Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {400: Bad Request, 404: Resource not found, 409: Conflict, 500: Internal Error}\n\n@endpoint GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head\n@desc List branches for HEAD commit\n@required {owner: str, repo: str, commit_sha: str # commit_sha parameter}\n@returns(200) Response\n@errors {415: Preview header missing, 422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/commits/{commit_sha}/comments\n@desc List commit comments\n@required {owner: str, repo: str, commit_sha: str # commit_sha parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/commits/{commit_sha}/comments\n@desc Create a commit comment\n@required {owner: str, repo: str, commit_sha: str # commit_sha parameter, body: str # The contents of the comment.}\n@optional {path: str # Relative path of the file to comment on., position: int # Line index in the diff to comment on., line: int # **Deprecated**. Use **position** parameter instead. Line number in the file to comment on.}\n@returns(201) {html_url: str(uri), url: str(uri), id: int, node_id: str, body: str, path: str?, position: int?, line: int?, commit_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {403: Forbidden, 422: Validation failed}\n@example_request {\"body\":\"Great stuff\",\"path\":\"file1.txt\",\"position\":4,\"line\":1}\n\n@endpoint GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls\n@desc List pull requests associated with a commit\n@required {owner: str, repo: str, commit_sha: str # commit_sha parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {415: Preview header missing}\n\n@endpoint GET /repos/{owner}/{repo}/commits/{ref}\n@desc Get a commit\n@required {owner: str, repo: str, ref: str # ref parameter}\n@optional {page: int=1 # Page number of the results to fetch., per_page: int=30 # Results per page (max 100)}\n@returns(200) {url: str(uri), sha: str, node_id: str, html_url: str(uri), comments_url: str(uri), commit: map{url: str(uri), author: map?{name: str, email: str, date: str}, committer: map?{name: str, email: str, date: str}, message: str, comment_count: int, tree: map{sha: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}}, author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, committer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parents: [map], stats: map{additions: int, deletions: int, total: int}, files: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed, 500: Internal Error}\n\n@endpoint GET /repos/{owner}/{repo}/commits/{ref}/check-runs\n@desc List check runs for a Git reference\n@required {owner: str, repo: str, ref: str # ref parameter}\n@optional {check_name: str # Returns check runs with the specified `name`., status: str(queued/in_progress/completed) # Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`., filter: str(latest/all)=latest # Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch., app_id: int}\n@returns(200) {total_count: int, check_runs: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/commits/{ref}/check-suites\n@desc List check suites for a Git reference\n@required {owner: str, repo: str, ref: str # ref parameter}\n@optional {app_id: int # Filters check suites by GitHub App `id`., check_name: str # Returns check runs with the specified `name`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, check_suites: [map]} # Response\n\n@endpoint GET /repos/{owner}/{repo}/commits/{ref}/status\n@desc Get the combined status for a specific reference\n@required {owner: str, repo: str, ref: str # ref parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {state: str, statuses: [map], sha: str, total_count: int, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, anonymous_access_enabled: bool}, commit_url: str(uri), url: str(uri)} # Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/commits/{ref}/statuses\n@desc List commit statuses for a reference\n@required {owner: str, repo: str, ref: str # ref parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {301: Moved permanently}\n\n@endpoint GET /repos/{owner}/{repo}/compare/{basehead}\n@desc Compare two commits\n@required {owner: str, repo: str, basehead: str # The base branch and head branch to compare. This parameter expects the format `{base}...{head}`.}\n@returns(200) {url: str(uri), html_url: str(uri), permalink_url: str(uri), diff_url: str(uri), patch_url: str(uri), base_commit: map{url: str(uri), sha: str, node_id: str, html_url: str(uri), comments_url: str(uri), commit: map{url: str(uri), author: map?{name: str, email: str, date: str}, committer: map?{name: str, email: str, date: str}, message: str, comment_count: int, tree: map{sha: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}}, author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, committer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parents: [map], stats: map{additions: int, deletions: int, total: int}, files: [map]}, merge_base_commit: map{url: str(uri), sha: str, node_id: str, html_url: str(uri), comments_url: str(uri), commit: map{url: str(uri), author: map?{name: str, email: str, date: str}, committer: map?{name: str, email: str, date: str}, message: str, comment_count: int, tree: map{sha: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}}, author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, committer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parents: [map], stats: map{additions: int, deletions: int, total: int}, files: [map]}, status: str, ahead_by: int, behind_by: int, total_commits: int, commits: [map], files: [map]} # Response\n@errors {404: Resource not found, 500: Internal Error}\n\n@endpoint POST /repos/{owner}/{repo}/content_references/{content_reference_id}/attachments\n@desc Create a content attachment\n@required {owner: str # The owner of the repository. Determined from the `repository` `full_name` of the `content_reference` event., repo: str # The name of the repository. Determined from the `repository` `full_name` of the `content_reference` event., content_reference_id: int # The `id` of the `content_reference` event., title: str # The title of the attachment, body: str # The body of the attachment}\n@returns(200) {id: int, title: str, body: str, node_id: str} # Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found, 410: Gone, 415: Preview header missing, 422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/contents/{path}\n@desc Get repository content\n@required {owner: str, repo: str, path: str # path parameter}\n@optional {ref: str # The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)}\n@returns(200) Response\n@errors {302: Found, 403: Forbidden, 404: Resource not found}\n\n@endpoint PUT /repos/{owner}/{repo}/contents/{path}\n@desc Create or update file contents\n@required {owner: str, repo: str, path: str # path parameter, message: str # The commit message., content: str # The new file content, using Base64 encoding.}\n@optional {sha: str # **Required if you are updating a file**. The blob SHA of the file being replaced., branch: str # The branch name. Default: the repository’s default branch (usually `master`), committer: map{name!: str, email!: str, date: str} # The person that committed the file. Default: the authenticated user., author: map{name!: str, email!: str, date: str} # The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.}\n@returns(200) {content: map?{name: str, path: str, sha: str, size: int, url: str, html_url: str, git_url: str, download_url: str, type: str, _links: map{self: str, git: str, html: str}}, commit: map{sha: str, node_id: str, url: str, html_url: str, author: map{date: str, name: str, email: str}, committer: map{date: str, name: str, email: str}, message: str, tree: map{url: str, sha: str}, parents: [map], verification: map{verified: bool, reason: str, signature: str?, payload: str?}}} # Response\n@returns(201) {content: map?{name: str, path: str, sha: str, size: int, url: str, html_url: str, git_url: str, download_url: str, type: str, _links: map{self: str, git: str, html: str}}, commit: map{sha: str, node_id: str, url: str, html_url: str, author: map{date: str, name: str, email: str}, committer: map{date: str, name: str, email: str}, message: str, tree: map{url: str, sha: str}, parents: [map], verification: map{verified: bool, reason: str, signature: str?, payload: str?}}} # Response\n@errors {404: Resource not found, 409: Conflict, 422: Validation failed}\n@example_request {\"message\":\"my commit message\",\"committer\":{\"name\":\"Monalisa Octocat\",\"email\":\"octocat@github.com\"},\"content\":\"bXkgbmV3IGZpbGUgY29udGVudHM=\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/contents/{path}\n@desc Delete a file\n@required {owner: str, repo: str, path: str # path parameter, message: str # The commit message., sha: str # The blob SHA of the file being replaced.}\n@optional {branch: str # The branch name. Default: the repository’s default branch (usually `master`), committer: map{name: str, email: str} # object containing information about the committer., author: map{name: str, email: str} # object containing information about the author.}\n@returns(200) {content: map?{name: str, path: str, sha: str, size: int, url: str, html_url: str, git_url: str, download_url: str, type: str, _links: map{self: str, git: str, html: str}}, commit: map{sha: str, node_id: str, url: str, html_url: str, author: map{date: str, name: str, email: str}, committer: map{date: str, name: str, email: str}, message: str, tree: map{url: str, sha: str}, parents: [map], verification: map{verified: bool, reason: str, signature: str?, payload: str?}}} # Response\n@errors {404: Resource not found, 409: Conflict, 422: Validation failed, 503: Service unavailable}\n@example_request {\"message\":\"my commit message\",\"committer\":{\"name\":\"Monalisa Octocat\",\"email\":\"octocat@github.com\"},\"sha\":\"329688480d39049927147c162b9d2deaf885005f\"}\n\n@endpoint GET /repos/{owner}/{repo}/contributors\n@desc List repository contributors\n@required {owner: str, repo: str}\n@optional {anon: str # Set to `1` or `true` to include anonymous contributors in results., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) if repository contains content\n@returns(204) Response if repository is empty\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/deployments\n@desc List deployments\n@required {owner: str, repo: str}\n@optional {sha: str=none # The SHA recorded at creation time., ref: str=none # The name of the ref. This can be a branch, tag, or SHA., task: str=none # The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`)., environment: str=none # The name of the environment that was deployed to (e.g., `staging` or `production`)., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/deployments\n@desc Create a deployment\n@required {owner: str, repo: str, ref: str # The ref to deploy. This can be a branch, tag, or SHA.}\n@optional {task: str=deploy # Specifies a task to execute (e.g., `deploy` or `deploy:migrations`)., auto_merge: bool=true # Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch., required_contexts: [str] # The [status](https://docs.github.com/enterprise-server@2.19/rest/reference/repos#statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts., payload: any, environment: str=production # Name for the target deployment environment (e.g., `production`, `staging`, `qa`)., description: str= # Short description of the deployment., transient_environment: bool=false # Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`   **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/enterprise-server@2.19/rest/overview/api-previews#enhanced-deployments) custom media type., production_environment: bool # Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.   **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/enterprise-server@2.19/rest/overview/api-previews#enhanced-deployments) custom media type.}\n@returns(201) {url: str(uri), id: int, node_id: str, sha: str, ref: str, task: str, payload: any, original_environment: str, environment: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), statuses_url: str(uri), repository_url: str(uri), transient_environment: bool, production_environment: bool, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@returns(202) {message: str} # Merged branch response\n@errors {409: Conflict when there is a merge conflict or the commit's status checks failed, 422: Validation failed}\n@example_request {\"ref\":\"topic-branch\",\"payload\":\"{ \\\"deploy\\\": \\\"migrate\\\" }\",\"description\":\"Deploy request from hubot\"}\n\n@endpoint GET /repos/{owner}/{repo}/deployments/{deployment_id}\n@desc Get a deployment\n@required {owner: str, repo: str, deployment_id: int # deployment_id parameter}\n@returns(200) {url: str(uri), id: int, node_id: str, sha: str, ref: str, task: str, payload: any, original_environment: str, environment: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), statuses_url: str(uri), repository_url: str(uri), transient_environment: bool, production_environment: bool, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\n@desc List deployment statuses\n@required {owner: str, repo: str, deployment_id: int # deployment_id parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\n@desc Create a deployment status\n@required {owner: str, repo: str, deployment_id: int # deployment_id parameter, state: str(error/failure/inactive/in_progress/queued/pending/success) # The state of the status. Can be one of `error`, `failure`, `inactive`, `in_progress`, `queued` `pending`, or `success`. **Note:** To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/enterprise-server@2.19/rest/overview/api-previews#enhanced-deployments) custom media type. To use the `in_progress` and `queued` states, you must provide the [`application/vnd.github.flash-preview+json`](https://docs.github.com/enterprise-server@2.19/rest/overview/api-previews#deployment-statuses) custom media type. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub.}\n@optional {target_url: str= # The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`., log_url: str= # The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `\"\"`   **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/enterprise-server@2.19/rest/overview/api-previews#enhanced-deployments) custom media type., description: str= # A short description of the status. The maximum description length is 140 characters., environment: str(production/staging/qa) # Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. **Note:** This parameter requires you to use the [`application/vnd.github.flash-preview+json`](https://docs.github.com/enterprise-server@2.19/rest/overview/api-previews#deployment-statuses) custom media type., environment_url: str= # Sets the URL for accessing your environment. Default: `\"\"`   **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/enterprise-server@2.19/rest/overview/api-previews#enhanced-deployments) custom media type., auto_inactive: bool # Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`   **Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://docs.github.com/enterprise-server@2.19/rest/overview/api-previews#deployment-statuses) custom media type.   **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/enterprise-server@2.19/rest/overview/api-previews#enhanced-deployments) custom media type.}\n@returns(201) {url: str(uri), id: int, node_id: str, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, description: str, environment: str, target_url: str(uri), created_at: str(date-time), updated_at: str(date-time), deployment_url: str(uri), repository_url: str(uri), environment_url: str(uri), log_url: str(uri), performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@errors {422: Validation failed}\n@example_request {\"environment\":\"production\",\"state\":\"success\",\"log_url\":\"https://example.com/deployment/42/output\",\"description\":\"Deployment finished successfully.\"}\n\n@endpoint GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}\n@desc Get a deployment status\n@required {owner: str, repo: str, deployment_id: int # deployment_id parameter, status_id: int}\n@returns(200) {url: str(uri), id: int, node_id: str, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, description: str, environment: str, target_url: str(uri), created_at: str(date-time), updated_at: str(date-time), deployment_url: str(uri), repository_url: str(uri), environment_url: str(uri), log_url: str(uri), performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@errors {404: Resource not found, 415: Preview header missing}\n\n@endpoint GET /repos/{owner}/{repo}/events\n@desc List repository events\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/forks\n@desc List forks\n@required {owner: str, repo: str}\n@optional {sort: str(newest/oldest/stargazers/watchers)=newest # The sort order. Can be either `newest`, `oldest`, or `stargazers`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {400: Bad Request}\n\n@endpoint POST /repos/{owner}/{repo}/forks\n@desc Create a fork\n@required {owner: str, repo: str}\n@optional {organization: str # Optional parameter to specify the organization name if forking into an organization.}\n@returns(202) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time), created_at: str(date-time), updated_at: str(date-time), permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parent: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, source: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, forks: int, master_branch: str, open_issues: int, watchers: int, anonymous_access_enabled: bool, code_of_conduct: map{url: str(uri), key: str, name: str, html_url: str(uri)?}} # Response\n@errors {400: Bad Request, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint POST /repos/{owner}/{repo}/git/blobs\n@desc Create a blob\n@required {owner: str, repo: str, content: str # The new blob's content.}\n@optional {encoding: str=utf-8 # The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.}\n@returns(201) {url: str, sha: str} # Response\n@errors {403: Forbidden, 404: Resource not found, 409: Conflict, 422: Validation failed}\n@example_request {\"content\":\"Content of the blob\",\"encoding\":\"utf-8\"}\n\n@endpoint GET /repos/{owner}/{repo}/git/blobs/{file_sha}\n@desc Get a blob\n@required {owner: str, repo: str, file_sha: str}\n@returns(200) {content: str, encoding: str, url: str(uri), sha: str, size: int?, node_id: str, highlighted_content: str} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint POST /repos/{owner}/{repo}/git/commits\n@desc Create a commit\n@required {owner: str, repo: str, message: str # The commit message, tree: str # The SHA of the tree object this commit points to}\n@optional {parents: [str] # The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided., author: map{name!: str, email!: str, date: str(date-time)} # Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details., committer: map{name: str, email: str, date: str(date-time)} # Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details., signature: str # The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.}\n@returns(201) {sha: str, node_id: str, url: str(uri), author: map{date: str(date-time), email: str, name: str}, committer: map{date: str(date-time), email: str, name: str}, message: str, tree: map{sha: str, url: str(uri)}, parents: [map], verification: map{verified: bool, reason: str, signature: str?, payload: str?}, html_url: str(uri)} # Response\n@errors {404: Resource not found, 422: Validation failed}\n@example_request {\"message\":\"my commit message\",\"author\":{\"name\":\"Mona Octocat\",\"email\":\"octocat@github.com\",\"date\":\"2008-07-09T16:13:30+12:00\"},\"parents\":[\"7d1b31e74ee336d15cbd21741bc88a537ed063a0\"],\"tree\":\"827efc6d56897b048c772eb4087f854f46256132\",\"signature\":\"-----BEGIN PGP SIGNATURE-----\\n\\niQIzBAABAQAdFiEESn/54jMNIrGSE6Tp6cQjvhfv7nAFAlnT71cACgkQ6cQjvhfv\\n7nCWwA//XVqBKWO0zF+bZl6pggvky3Oc2j1pNFuRWZ29LXpNuD5WUGXGG209B0hI\\nDkmcGk19ZKUTnEUJV2Xd0R7AW01S/YSub7OYcgBkI7qUE13FVHN5ln1KvH2all2n\\n2+JCV1HcJLEoTjqIFZSSu/sMdhkLQ9/NsmMAzpf/iIM0nQOyU4YRex9eD1bYj6nA\\nOQPIDdAuaTQj1gFPHYLzM4zJnCqGdRlg0sOM/zC5apBNzIwlgREatOYQSCfCKV7k\\nnrU34X8b9BzQaUx48Qa+Dmfn5KQ8dl27RNeWAqlkuWyv3pUauH9UeYW+KyuJeMkU\\n+NyHgAsWFaCFl23kCHThbLStMZOYEnGagrd0hnm1TPS4GJkV4wfYMwnI4KuSlHKB\\njHl3Js9vNzEUQipQJbgCgTiWvRJoK3ENwBTMVkKHaqT4x9U4Jk/XZB6Q8MA09ezJ\\n3QgiTjTAGcum9E9QiJqMYdWQPWkaBIRRz5cET6HPB48YNXAAUsfmuYsGrnVLYbG+\\nUpC6I97VybYHTy2O9XSGoaLeMI9CsFn38ycAxxbWagk5mhclNTP5mezIq6wKSwmr\\nX11FW3n1J23fWZn5HJMBsRnUCgzqzX3871IqLYHqRJ/bpZ4h20RhTyPj5c/z7QXp\\neSakNQMfbbMcljkha+ZMuVQX1K9aRlVqbmv3ZMWh+OijLYVU2bc=\\n=5Io4\\n-----END PGP SIGNATURE-----\\n\"}\n\n@endpoint GET /repos/{owner}/{repo}/git/commits/{commit_sha}\n@desc Get a commit\n@required {owner: str, repo: str, commit_sha: str # commit_sha parameter}\n@returns(200) {sha: str, node_id: str, url: str(uri), author: map{date: str(date-time), email: str, name: str}, committer: map{date: str(date-time), email: str, name: str}, message: str, tree: map{sha: str, url: str(uri)}, parents: [map], verification: map{verified: bool, reason: str, signature: str?, payload: str?}, html_url: str(uri)} # Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/git/matching-refs/{ref}\n@desc List matching references\n@required {owner: str, repo: str, ref: str # ref parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/git/ref/{ref}\n@desc Get a reference\n@required {owner: str, repo: str, ref: str # ref parameter}\n@returns(200) {ref: str, node_id: str, url: str(uri), object: map{type: str, sha: str, url: str(uri)}} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/git/refs\n@desc Create a reference\n@required {owner: str, repo: str, ref: str # The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected., sha: str # The SHA1 value for this reference.}\n@optional {key: str}\n@returns(201) {ref: str, node_id: str, url: str(uri), object: map{type: str, sha: str, url: str(uri)}} # Response\n@errors {422: Validation failed}\n@example_request {\"ref\":\"refs/heads/featureA\",\"sha\":\"aa218f56b14c9653891f9e74264a383fa43fefbd\"}\n\n@endpoint PATCH /repos/{owner}/{repo}/git/refs/{ref}\n@desc Update a reference\n@required {owner: str, repo: str, ref: str # ref parameter, sha: str # The SHA1 value to set this reference to}\n@optional {force: bool=false # Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.}\n@returns(200) {ref: str, node_id: str, url: str(uri), object: map{type: str, sha: str, url: str(uri)}} # Response\n@errors {422: Validation failed}\n@example_request {\"sha\":\"aa218f56b14c9653891f9e74264a383fa43fefbd\",\"force\":true}\n\n@endpoint DELETE /repos/{owner}/{repo}/git/refs/{ref}\n@desc Delete a reference\n@required {owner: str, repo: str, ref: str # ref parameter}\n@returns(204) Response\n@errors {422: Validation failed}\n\n@endpoint POST /repos/{owner}/{repo}/git/tags\n@desc Create a tag object\n@required {owner: str, repo: str, tag: str # The tag's name. This is typically a version (e.g., \"v0.0.1\")., message: str # The tag message., object: str # The SHA of the git object this is tagging., type: str(commit/tree/blob) # The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.}\n@optional {tagger: map{name!: str, email!: str, date: str(date-time)} # An object with information about the individual creating the tag.}\n@returns(201) {node_id: str, tag: str, sha: str, url: str(uri), message: str, tagger: map{date: str, email: str, name: str}, object: map{sha: str, type: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}} # Response\n@errors {422: Validation failed}\n@example_request {\"tag\":\"v0.0.1\",\"message\":\"initial version\",\"object\":\"c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c\",\"type\":\"commit\",\"tagger\":{\"name\":\"Monalisa Octocat\",\"email\":\"octocat@github.com\",\"date\":\"2011-06-17T14:53:35-07:00\"}}\n\n@endpoint GET /repos/{owner}/{repo}/git/tags/{tag_sha}\n@desc Get a tag\n@required {owner: str, repo: str, tag_sha: str}\n@returns(200) {node_id: str, tag: str, sha: str, url: str(uri), message: str, tagger: map{date: str, email: str, name: str}, object: map{sha: str, type: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/git/trees\n@desc Create a tree\n@required {owner: str, repo: str, tree: [map{path: str, mode: str, type: str, sha: str, content: str}] # Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.}\n@optional {base_tree: str # The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on. If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.}\n@returns(201) {sha: str, url: str(uri), truncated: bool, tree: [map]} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed}\n@example_request {\"base_tree\":\"9fb037999f264ba9a7fc6274d15fa3ae2ab98312\",\"tree\":[{\"path\":\"file.rb\",\"mode\":\"100644\",\"type\":\"blob\",\"sha\":\"44b4fc6d56897b048c772eb4087f854f46256132\"}]}\n\n@endpoint GET /repos/{owner}/{repo}/git/trees/{tree_sha}\n@desc Get a tree\n@required {owner: str, repo: str, tree_sha: str}\n@optional {recursive: str # Setting this parameter to any value returns the objects or subtrees referenced by the tree specified in `:tree_sha`. For example, setting `recursive` to any of the following will enable returning objects or subtrees: `0`, `1`, `\"true\"`, and `\"false\"`. Omit this parameter to prevent recursively returning objects or subtrees.}\n@returns(200) {sha: str, url: str(uri), truncated: bool, tree: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/hooks\n@desc List repository webhooks\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/hooks\n@desc Create a repository webhook\n@required {owner: str, repo: str}\n@optional {name: str # Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`., config: map{url: str(uri), content_type: str, secret: str, insecure_ssl: any, token: str, digest: str} # Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@2.19/rest/reference/repos#create-hook-config-params)., events: [str]=push # Determines what [events](https://docs.github.com/enterprise-server@2.19/webhooks/event-payloads) the hook is triggered for., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.}\n@returns(201) {type: str, id: int, name: str, active: bool, events: [str], config: map{email: str, password: str, room: str, subdomain: str, url: str(uri), insecure_ssl: any, content_type: str, digest: str, secret: str, token: str}, updated_at: str(date-time), created_at: str(date-time), url: str(uri), test_url: str(uri), ping_url: str(uri), last_response: map{code: int?, status: str?, message: str?}} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed}\n@example_request {\"name\":\"web\",\"active\":true,\"events\":[\"push\",\"pull_request\"],\"config\":{\"url\":\"https://example.com/webhook\",\"content_type\":\"json\",\"insecure_ssl\":\"0\"}}\n\n@endpoint GET /repos/{owner}/{repo}/hooks/{hook_id}\n@desc Get a repository webhook\n@required {owner: str, repo: str, hook_id: int}\n@returns(200) {type: str, id: int, name: str, active: bool, events: [str], config: map{email: str, password: str, room: str, subdomain: str, url: str(uri), insecure_ssl: any, content_type: str, digest: str, secret: str, token: str}, updated_at: str(date-time), created_at: str(date-time), url: str(uri), test_url: str(uri), ping_url: str(uri), last_response: map{code: int?, status: str?, message: str?}} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/hooks/{hook_id}\n@desc Update a repository webhook\n@required {owner: str, repo: str, hook_id: int}\n@optional {config: map{url!: str(uri), content_type: str, secret: str, insecure_ssl: any, address: str, room: str} # Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@2.19/rest/reference/repos#create-hook-config-params)., events: [str]=push # Determines what [events](https://docs.github.com/enterprise-server@2.19/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events., add_events: [str] # Determines a list of events to be added to the list of events that the Hook triggers for., remove_events: [str] # Determines a list of events to be removed from the list of events that the Hook triggers for., active: bool=true # Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.}\n@returns(200) {type: str, id: int, name: str, active: bool, events: [str], config: map{email: str, password: str, room: str, subdomain: str, url: str(uri), insecure_ssl: any, content_type: str, digest: str, secret: str, token: str}, updated_at: str(date-time), created_at: str(date-time), url: str(uri), test_url: str(uri), ping_url: str(uri), last_response: map{code: int?, status: str?, message: str?}} # Response\n@errors {404: Resource not found, 422: Validation failed}\n@example_request {\"active\":true,\"add_events\":[\"pull_request\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/hooks/{hook_id}\n@desc Delete a repository webhook\n@required {owner: str, repo: str, hook_id: int}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/hooks/{hook_id}/pings\n@desc Ping a repository webhook\n@required {owner: str, repo: str, hook_id: int}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/hooks/{hook_id}/tests\n@desc Test the push repository webhook\n@required {owner: str, repo: str, hook_id: int}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/installation\n@desc Get a repository installation for the authenticated app\n@required {accept: str=application/vnd.github.machine-man-preview+json # This API is under preview and subject to change., owner: str, repo: str}\n@returns(200) {id: int, account: any?, repository_selection: str, access_tokens_url: str(uri), repositories_url: str(uri), html_url: str(uri), app_id: int, target_id: int, target_type: str, permissions: map{deployments: str, checks: str, metadata: str, contents: str, pull_requests: str, statuses: str, issues: str, organization_administration: str}, events: [str], created_at: str(date-time), updated_at: str(date-time), single_file_name: str?, app_slug: str, suspended_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, suspended_at: str(date-time)?, contact_email: str?} # Response\n@errors {301: Moved permanently, 404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/invitations\n@desc List repository invitations\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint PATCH /repos/{owner}/{repo}/invitations/{invitation_id}\n@desc Update a repository invitation\n@required {owner: str, repo: str, invitation_id: int # invitation_id parameter}\n@optional {permissions: str(read/write/maintain/triage/admin) # The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.}\n@returns(200) {id: int, repository: map{id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, anonymous_access_enabled: bool}, invitee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, inviter: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, permissions: str, created_at: str(date-time), expired: bool, url: str, html_url: str, node_id: str} # Response\n\n@endpoint DELETE /repos/{owner}/{repo}/invitations/{invitation_id}\n@desc Delete a repository invitation\n@required {owner: str, repo: str, invitation_id: int # invitation_id parameter}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/issues\n@desc List repository issues\n@required {owner: str, repo: str}\n@optional {milestone: str # If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned., state: str(open/closed/all)=open # Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`., assignee: str # Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user., creator: str # The user that created the issue., mentioned: str # A user that's mentioned in the issue., labels: str # A list of comma separated label names. Example: `bug,ui,@high`, sort: str(created/updated/comments)=created # What to sort results by. Can be either `created`, `updated`, `comments`., direction: str(asc/desc)=desc # One of `asc` (ascending) or `desc` (descending)., since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {301: Moved permanently, 404: Resource not found, 422: Validation failed}\n\n@endpoint POST /repos/{owner}/{repo}/issues\n@desc Create an issue\n@required {owner: str, repo: str, title: any # The title of the issue.}\n@optional {body: str # The contents of the issue., assignee: str # Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_, milestone: any, labels: [any] # Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._, assignees: [str] # Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._}\n@returns(201) {id: int, node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, title: str, body: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [any], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), closed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed, 503: Service unavailable}\n@example_request {\"title\":\"Found a bug\",\"body\":\"I'm having a problem with this.\",\"assignees\":[\"octocat\"],\"milestone\":1,\"labels\":[\"bug\"]}\n\n@endpoint GET /repos/{owner}/{repo}/issues/comments\n@desc List issue comments for a repository\n@required {owner: str, repo: str}\n@optional {sort: str(created/updated)=created # One of `created` (when the repository was starred) or `updated` (when it was last pushed to)., direction: str(asc/desc) # Either `asc` or `desc`. Ignored without the `sort` parameter., since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found, 422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/issues/comments/{comment_id}\n@desc Get an issue comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter}\n@returns(200) {id: int, node_id: str, url: str(uri), body: str, body_text: str, body_html: str, html_url: str(uri), user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), issue_url: str(uri), author_association: str, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}\n@desc Update an issue comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter, body: str # The contents of the comment.}\n@returns(200) {id: int, node_id: str, url: str(uri), body: str, body_text: str, body_html: str, html_url: str(uri), user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), issue_url: str(uri), author_association: str, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {422: Validation failed}\n@example_request {\"body\":\"Me too\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}\n@desc Delete an issue comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\n@desc List reactions for an issue comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue comment., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found, 415: Preview header missing}\n\n@endpoint POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\n@desc Create reaction for an issue comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter, content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types) to add to the issue comment.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction exists\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction created\n@errors {415: Preview header missing, 422: Validation failed}\n@example_request {\"content\":\"heart\"}\n\n@endpoint GET /repos/{owner}/{repo}/issues/events\n@desc List issue events for a repository\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/issues/events/{event_id}\n@desc Get an issue event\n@required {owner: str, repo: str, event_id: int}\n@returns(200) {id: int, node_id: str, url: str(uri), actor: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, event: str, commit_id: str?, commit_url: str?, created_at: str(date-time), issue: map{id: int, node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, title: str, body: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [map], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), author_association: str, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}}, label: map{name: str?, color: str?}, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assigner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, review_requester: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, requested_reviewer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, requested_team: map{id: int, node_id: str, name: str, slug: str, description: str?, privacy: str, permission: str, permissions: map{pull: bool, triage: bool, push: bool, maintain: bool, admin: bool}, url: str(uri), html_url: str(uri), members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}}, dismissed_review: map{state: str, review_id: int, dismissal_message: str?, dismissal_commit_id: str?}, milestone: map{title: str}, project_card: map{url: str(uri), id: int, project_url: str(uri), project_id: int, column_name: str, previous_column_name: str}, rename: map{from: str, to: str}, author_association: str, lock_reason: str?, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@errors {403: Forbidden, 404: Resource not found, 410: Gone}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}\n@desc Get an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@returns(200) {id: int, node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, title: str, body: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [any], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), closed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {301: Moved permanently, 304: Not modified, 404: Resource not found, 410: Gone}\n\n@endpoint PATCH /repos/{owner}/{repo}/issues/{issue_number}\n@desc Update an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@optional {title: any # The title of the issue., body: str # The contents of the issue., assignee: str # Login for the user that this issue should be assigned to. **This field is deprecated.**, state: str(open/closed) # State of the issue. Either `open` or `closed`., milestone: any, labels: [any] # Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._, assignees: [str] # Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._}\n@returns(200) {id: int, node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, title: str, body: str?, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [any], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), closed_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, author_association: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {301: Moved permanently, 403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed, 503: Service unavailable}\n@example_request {\"title\":\"Found a bug\",\"body\":\"I'm having a problem with this.\",\"assignees\":[\"octocat\"],\"milestone\":1,\"state\":\"open\",\"labels\":[\"bug\"]}\n\n@endpoint POST /repos/{owner}/{repo}/issues/{issue_number}/assignees\n@desc Add assignees to an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@optional {assignees: [str] # Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._}\n@returns(201) {id: int, node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, title: str, body: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [map], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), author_association: str, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@example_request {\"assignees\":[\"hubot\",\"other_user\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees\n@desc Remove assignees from an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@optional {assignees: [str] # Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._}\n@returns(200) {id: int, node_id: str, url: str(uri), repository_url: str(uri), labels_url: str, comments_url: str(uri), events_url: str(uri), html_url: str(uri), number: int, state: str, title: str, body: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, labels: [map], assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, locked: bool, active_lock_reason: str?, comments: int, pull_request: map{merged_at: str(date-time)?, diff_url: str(uri)?, html_url: str(uri)?, patch_url: str(uri)?, url: str(uri)?}, closed_at: str(date-time)?, created_at: str(date-time), updated_at: str(date-time), author_association: str, body_html: str, body_text: str, timeline_url: str(uri), repository: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}} # Response\n@example_request {\"assignees\":[\"hubot\",\"other_user\"]}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}/comments\n@desc List issue comments\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@optional {since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found, 410: Gone}\n\n@endpoint POST /repos/{owner}/{repo}/issues/{issue_number}/comments\n@desc Create an issue comment\n@required {owner: str, repo: str, issue_number: int # issue_number parameter, body: str # The contents of the comment.}\n@returns(201) {id: int, node_id: str, url: str(uri), body: str, body_text: str, body_html: str, html_url: str(uri), user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), issue_url: str(uri), author_association: str, performed_via_github_app: map?{id: int, slug: str, node_id: str, owner: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, name: str, description: str?, external_url: str(uri), html_url: str(uri), created_at: str(date-time), updated_at: str(date-time), permissions: map{issues: str, checks: str, metadata: str, contents: str, deployments: str}, events: [str], installations_count: int, client_id: str, client_secret: str, webhook_secret: str?, pem: str}, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed}\n@example_request {\"body\":\"Me too\"}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}/events\n@desc List issue events\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {410: Gone}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}/labels\n@desc List labels for an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {410: Gone}\n\n@endpoint POST /repos/{owner}/{repo}/issues/{issue_number}/labels\n@desc Add labels to an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@returns(200) Response\n@errors {410: Gone, 422: Validation failed}\n@example_request {\"labels\":[\"bug\",\"enhancement\"]}\n\n@endpoint PUT /repos/{owner}/{repo}/issues/{issue_number}/labels\n@desc Set labels for an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@returns(200) Response\n@errors {410: Gone, 422: Validation failed}\n@example_request {\"labels\":[\"bug\",\"enhancement\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels\n@desc Remove all labels from an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@returns(204) Response\n@errors {410: Gone}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}\n@desc Remove a label from an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter, name: str}\n@returns(200) Response\n@errors {404: Resource not found, 410: Gone}\n\n@endpoint PUT /repos/{owner}/{repo}/issues/{issue_number}/lock\n@desc Lock an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@optional {lock_reason: str(off-topic/too heated/resolved/spam) # The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons:   \\* `off-topic`   \\* `too heated`   \\* `resolved`   \\* `spam`}\n@returns(204) Response\n@errors {403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed}\n\n@endpoint DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock\n@desc Unlock an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@returns(204) Response\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}/reactions\n@desc List reactions for an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found, 410: Gone, 415: Preview header missing}\n\n@endpoint POST /repos/{owner}/{repo}/issues/{issue_number}/reactions\n@desc Create reaction for an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter, content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types) to add to the issue.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response\n@errors {415: Preview header missing, 422: Validation failed}\n@example_request {\"content\":\"heart\"}\n\n@endpoint GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\n@desc List timeline events for an issue\n@required {owner: str, repo: str, issue_number: int # issue_number parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found, 410: Gone}\n\n@endpoint GET /repos/{owner}/{repo}/keys\n@desc List deploy keys\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/keys\n@desc Create a deploy key\n@required {owner: str, repo: str, key: str # The contents of the key.}\n@optional {title: str # A name for the key., read_only: bool # If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write.      Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://help.github.com/articles/permission-levels-for-a-user-account-repository/).\"}\n@returns(201) {id: int, key: str, url: str, title: str, verified: bool, created_at: str, read_only: bool} # Response\n@errors {422: Validation failed}\n@example_request {\"title\":\"octocat@octomac\",\"key\":\"ssh-rsa AAA...\",\"read_only\":true}\n\n@endpoint GET /repos/{owner}/{repo}/keys/{key_id}\n@desc Get a deploy key\n@required {owner: str, repo: str, key_id: int # key_id parameter}\n@returns(200) {id: int, key: str, url: str, title: str, verified: bool, created_at: str, read_only: bool} # Response\n@errors {404: Resource not found}\n\n@endpoint DELETE /repos/{owner}/{repo}/keys/{key_id}\n@desc Delete a deploy key\n@required {owner: str, repo: str, key_id: int # key_id parameter}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/labels\n@desc List labels for a repository\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/labels\n@desc Create a label\n@required {owner: str, repo: str, name: str # The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"}\n@optional {color: str # The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`., description: str # A short description of the label.}\n@returns(201) {id: int(int64), node_id: str, url: str(uri), name: str, description: str?, color: str, default: bool} # Response\n@errors {404: Resource not found, 422: Validation failed}\n@example_request {\"name\":\"bug\",\"description\":\"Something isn't working\",\"color\":\"f29513\"}\n\n@endpoint GET /repos/{owner}/{repo}/labels/{name}\n@desc Get a label\n@required {owner: str, repo: str, name: str}\n@returns(200) {id: int(int64), node_id: str, url: str(uri), name: str, description: str?, color: str, default: bool} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/labels/{name}\n@desc Update a label\n@required {owner: str, repo: str, name: str}\n@optional {new_name: str # The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\", color: str # The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`., description: str # A short description of the label.}\n@returns(200) {id: int(int64), node_id: str, url: str(uri), name: str, description: str?, color: str, default: bool} # Response\n@example_request {\"new_name\":\"bug :bug:\",\"description\":\"Small bug fix required\",\"color\":\"b01f26\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/labels/{name}\n@desc Delete a label\n@required {owner: str, repo: str, name: str}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/languages\n@desc List repository languages\n@required {owner: str, repo: str}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/license\n@desc Get the license for a repository\n@required {owner: str, repo: str}\n@returns(200) {name: str, path: str, sha: str, size: int, url: str(uri), html_url: str(uri)?, git_url: str(uri)?, download_url: str(uri)?, type: str, content: str, encoding: str, _links: map{git: str(uri)?, html: str(uri)?, self: str(uri)}, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}} # Response\n\n@endpoint POST /repos/{owner}/{repo}/merges\n@desc Merge a branch\n@required {owner: str, repo: str, base: str # The name of the base branch that the head will be merged into., head: str # The head to merge. This can be a branch name or a commit SHA1.}\n@optional {commit_message: str # Commit message to use for the merge commit. If omitted, a default message will be used.}\n@returns(201) {url: str(uri), sha: str, node_id: str, html_url: str(uri), comments_url: str(uri), commit: map{url: str(uri), author: map?{name: str, email: str, date: str}, committer: map?{name: str, email: str, date: str}, message: str, comment_count: int, tree: map{sha: str, url: str(uri)}, verification: map{verified: bool, reason: str, payload: str?, signature: str?}}, author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, committer: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, parents: [map], stats: map{additions: int, deletions: int, total: int}, files: [map]} # Successful Response (The resulting merge commit)\n@returns(204) Response when already merged\n@errors {403: Forbidden, 404: Not Found when the base or head does not exist, 409: Conflict when there is a merge conflict, 422: Validation failed}\n@example_request {\"base\":\"master\",\"head\":\"cool_feature\",\"commit_message\":\"Shipped cool_feature!\"}\n\n@endpoint GET /repos/{owner}/{repo}/milestones\n@desc List milestones\n@required {owner: str, repo: str}\n@optional {state: str(open/closed/all)=open # The state of the milestone. Either `open`, `closed`, or `all`., sort: str(due_on/completeness)=due_on # What to sort results by. Either `due_on` or `completeness`., direction: str(asc/desc)=asc # The direction of the sort. Either `asc` or `desc`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/milestones\n@desc Create a milestone\n@required {owner: str, repo: str, title: str # The title of the milestone.}\n@optional {state: str(open/closed)=open # The state of the milestone. Either `open` or `closed`., description: str # A description of the milestone., due_on: str(date-time) # The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.}\n@returns(201) {url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?} # Response\n@errors {404: Resource not found, 422: Validation failed}\n@example_request {\"title\":\"v1.0\",\"state\":\"open\",\"description\":\"Tracking milestone for version 1.0\",\"due_on\":\"2012-10-09T23:39:01Z\"}\n\n@endpoint GET /repos/{owner}/{repo}/milestones/{milestone_number}\n@desc Get a milestone\n@required {owner: str, repo: str, milestone_number: int # milestone_number parameter}\n@returns(200) {url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/milestones/{milestone_number}\n@desc Update a milestone\n@required {owner: str, repo: str, milestone_number: int # milestone_number parameter}\n@optional {title: str # The title of the milestone., state: str(open/closed)=open # The state of the milestone. Either `open` or `closed`., description: str # A description of the milestone., due_on: str(date-time) # The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.}\n@returns(200) {url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?} # Response\n@example_request {\"title\":\"v1.0\",\"state\":\"open\",\"description\":\"Tracking milestone for version 1.0\",\"due_on\":\"2012-10-09T23:39:01Z\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/milestones/{milestone_number}\n@desc Delete a milestone\n@required {owner: str, repo: str, milestone_number: int # milestone_number parameter}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels\n@desc List labels for issues in a milestone\n@required {owner: str, repo: str, milestone_number: int # milestone_number parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/notifications\n@desc List repository notifications for the authenticated user\n@required {owner: str, repo: str}\n@optional {all: bool=false # If `true`, show notifications marked as read., participating: bool=false # If `true`, only shows notifications in which the user is directly participating or mentioned., since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., before: str(date-time) # Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint PUT /repos/{owner}/{repo}/notifications\n@desc Mark repository notifications as read\n@required {owner: str, repo: str}\n@optional {last_read_at: str(date-time) # Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.}\n@returns(202) {message: str, url: str} # Response\n@returns(205) Reset Content\n\n@endpoint GET /repos/{owner}/{repo}/pages\n@desc Get a GitHub Enterprise Server Pages site\n@required {owner: str, repo: str}\n@returns(200) {url: str(uri), status: str?, cname: str?, custom_404: bool, html_url: str(uri), source: map{branch: str, path: str}, public: bool, https_certificate: map{state: str, description: str, domains: [any], expires_at: str(date)}, https_enforced: bool} # Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/pages\n@desc Create a GitHub Pages site\n@required {owner: str, repo: str, source: map{branch!: str, path: str} # The source branch and directory used to publish your Pages site.}\n@returns(201) {url: str(uri), status: str?, cname: str?, custom_404: bool, html_url: str(uri), source: map{branch: str, path: str}, public: bool, https_certificate: map{state: str, description: str, domains: [any], expires_at: str(date)}, https_enforced: bool} # Response\n@errors {409: Conflict, 415: Preview header missing, 422: Validation failed}\n@example_request {\"source\":{\"branch\":\"master\",\"path\":\"/docs\"}}\n\n@endpoint PUT /repos/{owner}/{repo}/pages\n@desc Update information about a GitHub Pages site\n@required {owner: str, repo: str}\n@optional {https_enforced: bool # Specify whether HTTPS should be enforced for the repository., public: bool # Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility. This feature is only available to repositories in an organization on an Enterprise plan., source: str(gh-pages/master/master/docs) # Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory `/docs`. Possible values are `\"gh-pages\"`, `\"master\"`, and `\"master /docs\"`.}\n@returns(204) Response\n@errors {400: Bad Request, 422: Validation failed}\n@example_request {\"source\":\"master /docs\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/pages\n@desc Delete a GitHub Enterprise Server Pages site\n@required {owner: str, repo: str}\n@returns(204) Response\n@errors {404: Resource not found, 415: Preview header missing, 422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/pages/builds\n@desc List GitHub Enterprise Server Pages builds\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/pages/builds\n@desc Request a GitHub Enterprise Server Pages build\n@required {owner: str, repo: str}\n@returns(201) {url: str(uri), status: str} # Response\n\n@endpoint GET /repos/{owner}/{repo}/pages/builds/latest\n@desc Get latest Pages build\n@required {owner: str, repo: str}\n@returns(200) {url: str(uri), status: str, error: map{message: str?}, pusher: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, commit: str, duration: int, created_at: str(date-time), updated_at: str(date-time)} # Response\n\n@endpoint GET /repos/{owner}/{repo}/pages/builds/{build_id}\n@desc Get GitHub Enterprise Server Pages build\n@required {owner: str, repo: str, build_id: int}\n@returns(200) {url: str(uri), status: str, error: map{message: str?}, pusher: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, commit: str, duration: int, created_at: str(date-time), updated_at: str(date-time)} # Response\n\n@endpoint GET /repos/{owner}/{repo}/pre-receive-hooks\n@desc List pre-receive hooks for a repository\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch., direction: str(asc/desc)=desc # One of `asc` (ascending) or `desc` (descending)., sort: str(created/updated/name)=created}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Get a pre-receive hook for a repository\n@required {owner: str, repo: str, pre_receive_hook_id: int # pre_receive_hook_id parameter}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str} # Response\n\n@endpoint PATCH /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Update pre-receive hook enforcement for a repository\n@required {owner: str, repo: str, pre_receive_hook_id: int # pre_receive_hook_id parameter}\n@optional {enforcement: str(enabled/disabled/testing) # The state of enforcement for the hook on this repository.}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str} # Response\n@example_request {\"enforcement\":\"enabled\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}\n@desc Remove pre-receive hook enforcement for a repository\n@required {owner: str, repo: str, pre_receive_hook_id: int # pre_receive_hook_id parameter}\n@returns(200) {id: int, name: str, enforcement: str, configuration_url: str} # Responds with effective values inherited from owner and/or global level.\n\n@endpoint GET /repos/{owner}/{repo}/projects\n@desc List repository projects\n@required {owner: str, repo: str}\n@optional {state: str(open/closed/all)=open # Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {401: Requires authentication, 403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed}\n\n@endpoint POST /repos/{owner}/{repo}/projects\n@desc Create a repository project\n@required {owner: str, repo: str, name: str # The name of the project.}\n@optional {body: str # The description of the project.}\n@returns(201) {owner_url: str(uri), url: str(uri), html_url: str(uri), columns_url: str(uri), id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), organization_permission: str, private: bool} # Response\n@errors {401: Requires authentication, 403: Forbidden, 404: Resource not found, 410: Gone, 422: Validation failed}\n@example_request {\"name\":\"Projects Documentation\",\"body\":\"Developer documentation project for the developer site.\"}\n\n@endpoint GET /repos/{owner}/{repo}/pulls\n@desc List pull requests\n@required {owner: str, repo: str}\n@optional {state: str(open/closed/all)=open # Either `open`, `closed`, or `all` to filter by state., head: str # Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`., base: str # Filter pulls by base branch name. Example: `gh-pages`., sort: str(created/updated/popularity/long-running)=created # What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month)., direction: str(asc/desc) # The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 422: Validation failed}\n\n@endpoint POST /repos/{owner}/{repo}/pulls\n@desc Create a pull request\n@required {owner: str, repo: str, head: str # The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`., base: str # The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.}\n@optional {title: str # The title of the new pull request., body: str # The contents of the pull request., maintainer_can_modify: bool # Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request., draft: bool # Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://help.github.com/en/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more., issue: int}\n@returns(201) {url: str(uri), id: int, node_id: str, html_url: str(uri), diff_url: str(uri), patch_url: str(uri), issue_url: str(uri), commits_url: str(uri), review_comments_url: str(uri), review_comment_url: str, comments_url: str(uri), statuses_url: str(uri), number: int, state: str, locked: bool, title: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str?, labels: [map], milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, active_lock_reason: str?, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, merged_at: str(date-time)?, merge_commit_sha: str?, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, requested_reviewers: [map]?, requested_teams: [map]?, head: map{label: str, ref: str, repo: map?{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, anonymous_access_enabled: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, base: map{label: str, ref: str, repo: map{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, anonymous_access_enabled: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, _links: map{comments: map{href: str}, commits: map{href: str}, statuses: map{href: str}, html: map{href: str}, issue: map{href: str}, review_comments: map{href: str}, review_comment: map{href: str}, self: map{href: str}}, author_association: str, draft: bool, merged: bool, mergeable: bool?, rebaseable: bool?, mergeable_state: str, merged_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments: int, review_comments: int, maintainer_can_modify: bool, commits: int, additions: int, deletions: int, changed_files: int} # Response\n@errors {403: Forbidden, 422: Validation failed}\n@example_request {\"title\":\"Amazing new feature\",\"body\":\"Please pull these awesome changes in!\",\"head\":\"octocat:new-feature\",\"base\":\"master\"}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/comments\n@desc List review comments in a repository\n@required {owner: str, repo: str}\n@optional {sort: str(created/updated/created_at), direction: str(asc/desc) # Can be either `asc` or `desc`. Ignored without `sort` parameter., since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/pulls/comments/{comment_id}\n@desc Get a review comment for a pull request\n@required {owner: str, repo: str, comment_id: int # comment_id parameter}\n@returns(200) {url: str, pull_request_review_id: int?, id: int, node_id: str, diff_hunk: str, path: str, position: int, original_position: int, commit_id: str, original_commit_id: str, in_reply_to_id: int, user: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, created_at: str(date-time), updated_at: str(date-time), html_url: str(uri), pull_request_url: str(uri), author_association: str, _links: map{self: map{href: str(uri)}, html: map{href: str(uri)}, pull_request: map{href: str(uri)}}, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}, body_html: str, body_text: str} # Response\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}\n@desc Update a review comment for a pull request\n@required {owner: str, repo: str, comment_id: int # comment_id parameter, body: str # The text of the reply to the review comment.}\n@returns(200) {url: str, pull_request_review_id: int?, id: int, node_id: str, diff_hunk: str, path: str, position: int, original_position: int, commit_id: str, original_commit_id: str, in_reply_to_id: int, user: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, created_at: str(date-time), updated_at: str(date-time), html_url: str(uri), pull_request_url: str(uri), author_association: str, _links: map{self: map{href: str(uri)}, html: map{href: str(uri)}, pull_request: map{href: str(uri)}}, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}, body_html: str, body_text: str} # Response\n@example_request {\"body\":\"I like this too!\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}\n@desc Delete a review comment for a pull request\n@required {owner: str, repo: str, comment_id: int # comment_id parameter}\n@returns(204) Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\n@desc List reactions for a pull request review comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a pull request review comment., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found, 415: Preview header missing}\n\n@endpoint POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\n@desc Create reaction for a pull request review comment\n@required {owner: str, repo: str, comment_id: int # comment_id parameter, content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types) to add to the pull request review comment.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction exists\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Reaction created\n@errors {415: Preview header missing, 422: Validation failed}\n@example_request {\"content\":\"heart\"}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}\n@desc Get a pull request\n@required {owner: str, repo: str, pull_number: int}\n@returns(200) {url: str(uri), id: int, node_id: str, html_url: str(uri), diff_url: str(uri), patch_url: str(uri), issue_url: str(uri), commits_url: str(uri), review_comments_url: str(uri), review_comment_url: str, comments_url: str(uri), statuses_url: str(uri), number: int, state: str, locked: bool, title: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str?, labels: [map], milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, active_lock_reason: str?, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, merged_at: str(date-time)?, merge_commit_sha: str?, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, requested_reviewers: [map]?, requested_teams: [map]?, head: map{label: str, ref: str, repo: map?{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, anonymous_access_enabled: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, base: map{label: str, ref: str, repo: map{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, anonymous_access_enabled: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, _links: map{comments: map{href: str}, commits: map{href: str}, statuses: map{href: str}, html: map{href: str}, issue: map{href: str}, review_comments: map{href: str}, review_comment: map{href: str}, self: map{href: str}}, author_association: str, draft: bool, merged: bool, mergeable: bool?, rebaseable: bool?, mergeable_state: str, merged_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments: int, review_comments: int, maintainer_can_modify: bool, commits: int, additions: int, deletions: int, changed_files: int} # Pass the appropriate [media type](https://docs.github.com/enterprise-server@2.19/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.\n@errors {304: Not modified, 404: Resource not found, 500: Internal Error}\n\n@endpoint PATCH /repos/{owner}/{repo}/pulls/{pull_number}\n@desc Update a pull request\n@required {owner: str, repo: str, pull_number: int}\n@optional {title: str # The title of the pull request., body: str # The contents of the pull request., state: str(open/closed) # State of this Pull Request. Either `open` or `closed`., base: str # The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository., maintainer_can_modify: bool # Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.}\n@returns(200) {url: str(uri), id: int, node_id: str, html_url: str(uri), diff_url: str(uri), patch_url: str(uri), issue_url: str(uri), commits_url: str(uri), review_comments_url: str(uri), review_comment_url: str, comments_url: str(uri), statuses_url: str(uri), number: int, state: str, locked: bool, title: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str?, labels: [map], milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, active_lock_reason: str?, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, merged_at: str(date-time)?, merge_commit_sha: str?, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, requested_reviewers: [map]?, requested_teams: [map]?, head: map{label: str, ref: str, repo: map?{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, anonymous_access_enabled: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, base: map{label: str, ref: str, repo: map{archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), description: str?, downloads_url: str(uri), events_url: str(uri), fork: bool, forks_url: str(uri), full_name: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, hooks_url: str(uri), html_url: str(uri), id: int, node_id: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, name: str, notifications_url: str, owner: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}, private: bool, pulls_url: str, releases_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, url: str(uri), clone_url: str, default_branch: str, forks: int, forks_count: int, git_url: str, has_downloads: bool, has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, homepage: str(uri)?, language: str?, master_branch: str, archived: bool, disabled: bool, mirror_url: str(uri)?, open_issues: int, open_issues_count: int, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_merge_commit: bool, allow_squash_merge: bool, allow_rebase_merge: bool, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, pushed_at: str(date-time), size: int, ssh_url: str, stargazers_count: int, svn_url: str(uri), topics: [str], watchers: int, watchers_count: int, created_at: str(date-time), updated_at: str(date-time), allow_forking: bool, anonymous_access_enabled: bool}, sha: str, user: map{avatar_url: str(uri), events_url: str, followers_url: str(uri), following_url: str, gists_url: str, gravatar_id: str?, html_url: str(uri), id: int, node_id: str, login: str, organizations_url: str(uri), received_events_url: str(uri), repos_url: str(uri), site_admin: bool, starred_url: str, subscriptions_url: str(uri), type: str, url: str(uri)}}, _links: map{comments: map{href: str}, commits: map{href: str}, statuses: map{href: str}, html: map{href: str}, issue: map{href: str}, review_comments: map{href: str}, review_comment: map{href: str}, self: map{href: str}}, author_association: str, draft: bool, merged: bool, mergeable: bool?, rebaseable: bool?, mergeable_state: str, merged_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, comments: int, review_comments: int, maintainer_can_modify: bool, commits: int, additions: int, deletions: int, changed_files: int} # Response\n@errors {403: Forbidden, 422: Validation failed}\n@example_request {\"title\":\"new title\",\"body\":\"updated body\",\"state\":\"open\",\"base\":\"master\"}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/comments\n@desc List review comments on a pull request\n@required {owner: str, repo: str, pull_number: int}\n@optional {sort: str(created/updated)=created # One of `created` (when the repository was starred) or `updated` (when it was last pushed to)., direction: str(asc/desc) # Can be either `asc` or `desc`. Ignored without `sort` parameter., since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/pulls/{pull_number}/comments\n@desc Create a review comment for a pull request (alternative)\n@required {owner: str, repo: str, pull_number: int, body: str # The text of the comment.}\n@optional {in_reply_to: int # The comment ID to reply to. **Note**: This must be the ID of a _top-level comment_, not a reply to that comment. Replies to replies are not supported.}\n@returns(201) {url: str, pull_request_review_id: int, id: int, node_id: str, diff_hunk: str, path: str, position: int, original_position: int, commit_id: str, original_commit_id: str, in_reply_to_id: int, user: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, body: str, created_at: str, updated_at: str, html_url: str, pull_request_url: str, author_association: str, _links: map{self: map{href: str}, html: map{href: str}, pull_request: map{href: str}}} # Response\n@example_request {\"body\":\"Nice change\"}\n\n@endpoint POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies\n@desc Create a reply for a review comment\n@required {owner: str, repo: str, pull_number: int, comment_id: int # comment_id parameter, body: str # The text of the review comment.}\n@returns(201) {url: str, pull_request_review_id: int?, id: int, node_id: str, diff_hunk: str, path: str, position: int, original_position: int, commit_id: str, original_commit_id: str, in_reply_to_id: int, user: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, created_at: str(date-time), updated_at: str(date-time), html_url: str(uri), pull_request_url: str(uri), author_association: str, _links: map{self: map{href: str(uri)}, html: map{href: str(uri)}, pull_request: map{href: str(uri)}}, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}, body_html: str, body_text: str} # Response\n@errors {404: Resource not found}\n@example_request {\"body\":\"Great stuff!\"}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/commits\n@desc List commits on a pull request\n@required {owner: str, repo: str, pull_number: int}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/files\n@desc List pull requests files\n@required {owner: str, repo: str, pull_number: int}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {422: Validation failed, 500: Internal Error}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/merge\n@desc Check if a pull request has been merged\n@required {owner: str, repo: str, pull_number: int}\n@returns(204) Response if pull request has been merged\n@errors {404: Not Found if pull request has not been merged}\n\n@endpoint PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge\n@desc Merge a pull request\n@required {owner: str, repo: str, pull_number: int}\n@optional {commit_title: str # Title for the automatic commit message., commit_message: str # Extra detail to append to automatic commit message., sha: str # SHA that pull request head must match to allow merge., merge_method: str(merge/squash/rebase) # Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.}\n@returns(200) {sha: str, merged: bool, message: str} # if merge was successful\n@errors {403: Forbidden, 404: Resource not found, 405: Method Not Allowed if merge cannot be performed, 409: Conflict if sha was provided and pull request head did not match, 422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\n@desc List requested reviewers for a pull request\n@required {owner: str, repo: str, pull_number: int}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {users: [map], teams: [map]} # Response\n\n@endpoint POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\n@desc Request reviewers for a pull request\n@required {owner: str, repo: str, pull_number: int}\n@optional {reviewers: [str] # An array of user `login`s that will be requested., team_reviewers: [str] # An array of team `slug`s that will be requested.}\n@returns(201) {url: str(uri), id: int, node_id: str, html_url: str(uri), diff_url: str(uri), patch_url: str(uri), issue_url: str(uri), commits_url: str(uri), review_comments_url: str(uri), review_comment_url: str, comments_url: str(uri), statuses_url: str(uri), number: int, state: str, locked: bool, title: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str?, labels: [map], milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, active_lock_reason: str?, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, merged_at: str(date-time)?, merge_commit_sha: str?, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, requested_reviewers: [map]?, requested_teams: [map]?, head: map{label: str, ref: str, repo: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, sha: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, base: map{label: str, ref: str, repo: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, sha: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, _links: map{comments: map{href: str}, commits: map{href: str}, statuses: map{href: str}, html: map{href: str}, issue: map{href: str}, review_comments: map{href: str}, review_comment: map{href: str}, self: map{href: str}}, author_association: str, draft: bool} # Response\n@errors {403: Forbidden, 422: Unprocessable Entity if user is not a collaborator}\n@example_request {\"reviewers\":[\"octocat\",\"hubot\",\"other_user\"],\"team_reviewers\":[\"justice-league\"]}\n\n@endpoint DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\n@desc Remove requested reviewers from a pull request\n@required {owner: str, repo: str, pull_number: int, reviewers: [str] # An array of user `login`s that will be removed.}\n@optional {team_reviewers: [str] # An array of team `slug`s that will be removed.}\n@returns(200) {url: str(uri), id: int, node_id: str, html_url: str(uri), diff_url: str(uri), patch_url: str(uri), issue_url: str(uri), commits_url: str(uri), review_comments_url: str(uri), review_comment_url: str, comments_url: str(uri), statuses_url: str(uri), number: int, state: str, locked: bool, title: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str?, labels: [map], milestone: map?{url: str(uri), html_url: str(uri), labels_url: str(uri), id: int, node_id: str, number: int, state: str, title: str, description: str?, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, open_issues: int, closed_issues: int, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, due_on: str(date-time)?}, active_lock_reason: str?, created_at: str(date-time), updated_at: str(date-time), closed_at: str(date-time)?, merged_at: str(date-time)?, merge_commit_sha: str?, assignee: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assignees: [map]?, requested_reviewers: [map]?, requested_teams: [map]?, head: map{label: str, ref: str, repo: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, sha: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, base: map{label: str, ref: str, repo: map{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, sha: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}}, _links: map{comments: map{href: str}, commits: map{href: str}, statuses: map{href: str}, html: map{href: str}, issue: map{href: str}, review_comments: map{href: str}, review_comment: map{href: str}, self: map{href: str}}, author_association: str, draft: bool} # Response\n@errors {422: Validation failed}\n@example_request {\"reviewers\":[\"octocat\",\"hubot\",\"other_user\"],\"team_reviewers\":[\"justice-league\"]}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\n@desc List reviews for a pull request\n@required {owner: str, repo: str, pull_number: int}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) The list of reviews returns in chronological order.\n\n@endpoint POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews\n@desc Create a review for a pull request\n@required {owner: str, repo: str, pull_number: int}\n@optional {commit_id: str # The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value., body: str # **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review., event: str(APPROVE/REQUEST_CHANGES/COMMENT) # The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/enterprise-server@2.19/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready., comments: [map{path!: str, position: int, body!: str, line: int, side: str, start_line: int, start_side: str}] # Use the following table to specify the location, destination, and contents of the draft review comment.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str, body_html: str, body_text: str, author_association: str} # Response\n@errors {403: Forbidden, 422: Validation failed}\n@example_request {\"commit_id\":\"ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091\",\"body\":\"This is close to perfect! Please address the suggested inline change.\",\"event\":\"REQUEST_CHANGES\",\"comments\":[{\"path\":\"file.md\",\"position\":6,\"body\":\"Please add more information here, and fix this typo.\"}]}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n@desc Get a review for a pull request\n@required {owner: str, repo: str, pull_number: int, review_id: int # review_id parameter}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str, body_html: str, body_text: str, author_association: str} # Response\n@errors {404: Resource not found}\n\n@endpoint PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n@desc Update a review for a pull request\n@required {owner: str, repo: str, pull_number: int, review_id: int # review_id parameter, body: str # The body text of the pull request review.}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str, body_html: str, body_text: str, author_association: str} # Response\n@errors {422: Validation failed}\n@example_request {\"body\":\"This is close to perfect! Please address the suggested inline change. And add more about this.\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\n@desc Delete a pending review for a pull request\n@required {owner: str, repo: str, pull_number: int, review_id: int # review_id parameter}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str, body_html: str, body_text: str, author_association: str} # Response\n@errors {404: Resource not found, 422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments\n@desc List comments for a pull request review\n@required {owner: str, repo: str, pull_number: int, review_id: int # review_id parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals\n@desc Dismiss a review for a pull request\n@required {owner: str, repo: str, pull_number: int, review_id: int # review_id parameter, message: str # The message for the pull request review dismissal}\n@optional {event: str}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str, body_html: str, body_text: str, author_association: str} # Response\n@errors {404: Resource not found, 422: Validation failed}\n\n@endpoint POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events\n@desc Submit a review for a pull request\n@required {owner: str, repo: str, pull_number: int, review_id: int # review_id parameter, event: str(APPROVE/REQUEST_CHANGES/COMMENT) # The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.}\n@optional {body: str # The body text of the pull request review}\n@returns(200) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, state: str, html_url: str(uri), pull_request_url: str(uri), _links: map{html: map{href: str}, pull_request: map{href: str}}, submitted_at: str(date-time), commit_id: str, body_html: str, body_text: str, author_association: str} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch\n@desc Update a pull request branch\n@required {owner: str, repo: str, pull_number: int}\n@optional {expected_head_sha: str # The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/enterprise-server@2.19/rest/reference/repos#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.}\n@returns(202) {message: str, url: str} # Response\n@errors {403: Forbidden, 415: Preview header missing, 422: Validation failed}\n@example_request {\"expected_head_sha\":\"6dcb09b5b57875f334f61aebed695e2e4193db5e\"}\n\n@endpoint GET /repos/{owner}/{repo}/readme\n@desc Get a repository README\n@required {owner: str, repo: str}\n@optional {ref: str # The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)}\n@returns(200) {type: str, encoding: str, size: int, name: str, path: str, content: str, sha: str, url: str(uri), git_url: str(uri)?, html_url: str(uri)?, download_url: str(uri)?, _links: map{git: str(uri)?, html: str(uri)?, self: str(uri)}, target: str, submodule_git_url: str} # Response\n@errors {404: Resource not found, 422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/readme/{dir}\n@desc Get a repository README for a directory\n@required {owner: str, repo: str, dir: str # The alternate path to look for a README file}\n@optional {ref: str # The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)}\n@returns(200) {type: str, encoding: str, size: int, name: str, path: str, content: str, sha: str, url: str(uri), git_url: str(uri)?, html_url: str(uri)?, download_url: str(uri)?, _links: map{git: str(uri)?, html: str(uri)?, self: str(uri)}, target: str, submodule_git_url: str} # Response\n@errors {404: Resource not found, 422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/releases\n@desc List releases\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {404: Resource not found}\n\n@endpoint POST /repos/{owner}/{repo}/releases\n@desc Create a release\n@required {owner: str, repo: str, tag_name: str # The name of the tag.}\n@optional {target_commitish: str # Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`)., name: str # The name of the release., body: str # Text describing the contents of the tag., draft: bool=false # `true` to create a draft (unpublished) release, `false` to create a published one., prerelease: bool=false # `true` to identify the release as a prerelease. `false` to identify the release as a full release.}\n@returns(201) {url: str(uri), html_url: str(uri), assets_url: str(uri), upload_url: str, tarball_url: str(uri)?, zipball_url: str(uri)?, id: int, node_id: str, tag_name: str, target_commitish: str, name: str?, body: str?, draft: bool, prerelease: bool, created_at: str(date-time), published_at: str(date-time)?, author: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assets: [map], body_html: str, body_text: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {422: Validation failed}\n@example_request {\"tag_name\":\"v1.0.0\",\"target_commitish\":\"master\",\"name\":\"v1.0.0\",\"body\":\"Description of the release\",\"draft\":false,\"prerelease\":false}\n\n@endpoint GET /repos/{owner}/{repo}/releases/assets/{asset_id}\n@desc Get a release asset\n@required {owner: str, repo: str, asset_id: int # asset_id parameter}\n@returns(200) {url: str(uri), browser_download_url: str(uri), id: int, node_id: str, name: str, label: str?, state: str, content_type: str, size: int, download_count: int, created_at: str(date-time), updated_at: str(date-time), uploader: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/enterprise-server@2.19/rest/overview/media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response.\n@errors {302: Found, 404: Resource not found, 415: Preview header missing}\n\n@endpoint PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}\n@desc Update a release asset\n@required {owner: str, repo: str, asset_id: int # asset_id parameter}\n@optional {name: str # The file name of the asset., label: str # An alternate short description of the asset. Used in place of the filename., state: str}\n@returns(200) {url: str(uri), browser_download_url: str(uri), id: int, node_id: str, name: str, label: str?, state: str, content_type: str, size: int, download_count: int, created_at: str(date-time), updated_at: str(date-time), uploader: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # Response\n@example_request {\"name\":\"foo-1.0.0-osx.zip\",\"label\":\"Mac binary\"}\n\n@endpoint DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}\n@desc Delete a release asset\n@required {owner: str, repo: str, asset_id: int # asset_id parameter}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/releases/latest\n@desc Get the latest release\n@required {owner: str, repo: str}\n@returns(200) {url: str(uri), html_url: str(uri), assets_url: str(uri), upload_url: str, tarball_url: str(uri)?, zipball_url: str(uri)?, id: int, node_id: str, tag_name: str, target_commitish: str, name: str?, body: str?, draft: bool, prerelease: bool, created_at: str(date-time), published_at: str(date-time)?, author: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assets: [map], body_html: str, body_text: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n\n@endpoint GET /repos/{owner}/{repo}/releases/tags/{tag}\n@desc Get a release by tag name\n@required {owner: str, repo: str, tag: str # tag parameter}\n@returns(200) {url: str(uri), html_url: str(uri), assets_url: str(uri), upload_url: str, tarball_url: str(uri)?, zipball_url: str(uri)?, id: int, node_id: str, tag_name: str, target_commitish: str, name: str?, body: str?, draft: bool, prerelease: bool, created_at: str(date-time), published_at: str(date-time)?, author: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assets: [map], body_html: str, body_text: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/releases/{release_id}\n@desc Get a release\n@required {owner: str, repo: str, release_id: int # release_id parameter}\n@returns(200) {url: str(uri), html_url: str(uri), assets_url: str(uri), upload_url: str, tarball_url: str(uri)?, zipball_url: str(uri)?, id: int, node_id: str, tag_name: str, target_commitish: str, name: str?, body: str?, draft: bool, prerelease: bool, created_at: str(date-time), published_at: str(date-time)?, author: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assets: [map], body_html: str, body_text: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # **Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://docs.github.com/enterprise-server@2.19/rest/overview/resources-in-the-rest-api#hypermedia).\n@errors {404: Resource not found}\n\n@endpoint PATCH /repos/{owner}/{repo}/releases/{release_id}\n@desc Update a release\n@required {owner: str, repo: str, release_id: int # release_id parameter}\n@optional {tag_name: str # The name of the tag., target_commitish: str # Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`)., name: str # The name of the release., body: str # Text describing the contents of the tag., draft: bool # `true` makes the release a draft, and `false` publishes the release., prerelease: bool # `true` to identify the release as a prerelease, `false` to identify the release as a full release.}\n@returns(200) {url: str(uri), html_url: str(uri), assets_url: str(uri), upload_url: str, tarball_url: str(uri)?, zipball_url: str(uri)?, id: int, node_id: str, tag_name: str, target_commitish: str, name: str?, body: str?, draft: bool, prerelease: bool, created_at: str(date-time), published_at: str(date-time)?, author: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, assets: [map], body_html: str, body_text: str, reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"tag_name\":\"v1.0.0\",\"target_commitish\":\"master\",\"name\":\"v1.0.0\",\"body\":\"Description of the release\",\"draft\":false,\"prerelease\":false}\n\n@endpoint DELETE /repos/{owner}/{repo}/releases/{release_id}\n@desc Delete a release\n@required {owner: str, repo: str, release_id: int # release_id parameter}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/releases/{release_id}/assets\n@desc List release assets\n@required {owner: str, repo: str, release_id: int # release_id parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /repos/{owner}/{repo}/releases/{release_id}/assets\n@desc Upload a release asset\n@required {owner: str, repo: str, release_id: int # release_id parameter, name: str}\n@optional {label: str}\n@returns(201) {url: str(uri), browser_download_url: str(uri), id: int, node_id: str, name: str, label: str?, state: str, content_type: str, size: int, download_count: int, created_at: str(date-time), updated_at: str(date-time), uploader: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # Response for successful upload\n\n@endpoint GET /repos/{owner}/{repo}/stargazers\n@desc List stargazers\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint GET /repos/{owner}/{repo}/stats/code_frequency\n@desc Get the weekly commit activity\n@required {owner: str, repo: str}\n@returns(200) Returns a weekly aggregate of the number of additions and deletions pushed to a repository.\n@returns(202) Accepted\n@returns(204) A header with no content is returned.\n\n@endpoint GET /repos/{owner}/{repo}/stats/commit_activity\n@desc Get the last year of commit activity\n@required {owner: str, repo: str}\n@returns(200) Response\n@returns(202) Accepted\n@returns(204) A header with no content is returned.\n\n@endpoint GET /repos/{owner}/{repo}/stats/contributors\n@desc Get all contributor commit activity\n@required {owner: str, repo: str}\n@returns(200) *   `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time). *   `a` - Number of additions *   `d` - Number of deletions *   `c` - Number of commits\n@returns(202) Accepted\n@returns(204) A header with no content is returned.\n\n@endpoint GET /repos/{owner}/{repo}/stats/participation\n@desc Get the weekly commit count\n@required {owner: str, repo: str}\n@returns(200) {all: [int], owner: [int]} # The array order is oldest week (index 0) to most recent week.\n@errors {404: Resource not found}\n\n@endpoint GET /repos/{owner}/{repo}/stats/punch_card\n@desc Get the hourly commit count for each day\n@required {owner: str, repo: str}\n@returns(200) For example, `[2, 14, 25]` indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.\n@returns(204) A header with no content is returned.\n\n@endpoint POST /repos/{owner}/{repo}/statuses/{sha}\n@desc Create a commit status\n@required {owner: str, repo: str, sha: str, state: str(error/failure/pending/success) # The state of the status. Can be one of `error`, `failure`, `pending`, or `success`.}\n@optional {target_url: str # The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status.   For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA:   `http://ci.example.com/user/repo/build/sha`, description: str # A short description of the status., context: str=default # A string label to differentiate this status from the status of other systems. This field is case-insensitive.}\n@returns(201) {url: str, avatar_url: str?, id: int, node_id: str, state: str, description: str, target_url: str, context: str, created_at: str, updated_at: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}} # Response\n@example_request {\"state\":\"success\",\"target_url\":\"https://example.com/build/status\",\"description\":\"The build succeeded!\",\"context\":\"continuous-integration/jenkins\"}\n\n@endpoint GET /repos/{owner}/{repo}/subscribers\n@desc List watchers\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/subscription\n@desc Get a repository subscription\n@required {owner: str, repo: str}\n@returns(200) {subscribed: bool, ignored: bool, reason: str?, created_at: str(date-time), url: str(uri), repository_url: str(uri)} # if you subscribe to the repository\n@errors {403: Forbidden, 404: Not Found if you don't subscribe to the repository}\n\n@endpoint PUT /repos/{owner}/{repo}/subscription\n@desc Set a repository subscription\n@required {owner: str, repo: str}\n@optional {subscribed: bool # Determines if notifications should be received from this repository., ignored: bool # Determines if all notifications should be blocked from this repository.}\n@returns(200) {subscribed: bool, ignored: bool, reason: str?, created_at: str(date-time), url: str(uri), repository_url: str(uri)} # Response\n\n@endpoint DELETE /repos/{owner}/{repo}/subscription\n@desc Delete a repository subscription\n@required {owner: str, repo: str}\n@returns(204) Response\n\n@endpoint GET /repos/{owner}/{repo}/tags\n@desc List repository tags\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/tarball/{ref}\n@desc Download a repository archive (tar)\n@required {owner: str, repo: str, ref: str}\n@errors {302: Response}\n\n@endpoint GET /repos/{owner}/{repo}/teams\n@desc List repository teams\n@required {owner: str, repo: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /repos/{owner}/{repo}/topics\n@desc Get all repository topics\n@required {owner: str, repo: str}\n@optional {page: int=1 # Page number of the results to fetch., per_page: int=30 # Results per page (max 100)}\n@returns(200) {names: [str]} # Response\n@errors {404: Resource not found, 415: Preview header missing}\n\n@endpoint PUT /repos/{owner}/{repo}/topics\n@desc Replace all repository topics\n@required {owner: str, repo: str, names: [str] # An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.}\n@returns(200) {names: [str]} # Response\n@errors {404: Resource not found, 415: Preview header missing, 422: Validation failed}\n@example_request {\"names\":[\"octocat\",\"atom\",\"electron\",\"api\"]}\n\n@endpoint POST /repos/{owner}/{repo}/transfer\n@desc Transfer a repository\n@required {owner: str, repo: str, new_owner: str # The username or organization name the repository will be transferred to.}\n@optional {team_ids: [int] # ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.}\n@returns(202) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, anonymous_access_enabled: bool} # Response\n@example_request {\"new_owner\":\"github\",\"team_ids\":[12,345]}\n\n@endpoint GET /repos/{owner}/{repo}/zipball/{ref}\n@desc Download a repository archive (zip)\n@required {owner: str, repo: str, ref: str}\n@errors {302: Response}\n\n@endpoint POST /repos/{template_owner}/{template_repo}/generate\n@desc Create a repository using a template\n@required {template_owner: str, template_repo: str, name: str # The name of the new repository.}\n@optional {owner: str # The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization., description: str # A short description of the new repository., include_all_branches: bool=false # Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`., private: bool=false # Either `true` to create a new private repository or `false` to create a new public one.}\n@returns(201) {id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool} # Response\n@example_request {\"owner\":\"octocat\",\"name\":\"Hello-World\",\"description\":\"This is your first repository\",\"include_all_branches\":false,\"private\":false}\n\n@endgroup\n\n@group repositories\n@endpoint GET /repositories\n@desc List public repositories\n@optional {since: int # A repository ID. Only return repositories with an ID greater than this ID., visibility: str(all/public)=public # Specifies the types of repositories to return. Can be one of `all` or `public`. Default: `public`. Note: For GitHub Enterprise Server and GitHub AE, this endpoint will only list repositories available to all users on the enterprise.}\n@returns(200) Response\n@errors {304: Not modified, 422: Validation failed}\n\n@endgroup\n\n@group search\n@endpoint GET /search/code\n@desc Search code\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@2.19/rest/reference/search#constructing-a-search-query). See \"[Searching code](https://help.github.com/articles/searching-code/)\" for a detailed list of qualifiers.}\n@optional {sort: str # Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: [best match](https://docs.github.com/enterprise-server@2.19/rest/reference/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 403: Forbidden, 422: Validation failed, 503: Service unavailable}\n\n@endpoint GET /search/commits\n@desc Search commits\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@2.19/rest/reference/search#constructing-a-search-query). See \"[Searching commits](https://help.github.com/articles/searching-commits/)\" for a detailed list of qualifiers.}\n@optional {sort: str(author-date/committer-date) # Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://docs.github.com/enterprise-server@2.19/rest/reference/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 415: Preview header missing}\n\n@endpoint GET /search/issues\n@desc Search issues and pull requests\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@2.19/rest/reference/search#constructing-a-search-query). See \"[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)\" for a detailed list of qualifiers.}\n@optional {sort: str(comments/reactions/reactions-+1/reactions--1/reactions-smile/reactions-thinking_face/reactions-heart/reactions-tada/interactions/created/updated) # Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://docs.github.com/enterprise-server@2.19/rest/reference/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 403: Forbidden, 422: Validation failed, 503: Service unavailable}\n\n@endpoint GET /search/labels\n@desc Search labels\n@required {repository_id: int # The id of the repository., q: str # The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@2.19/rest/reference/search#constructing-a-search-query).}\n@optional {sort: str(created/updated) # Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://docs.github.com/enterprise-server@2.19/rest/reference/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint GET /search/repositories\n@desc Search repositories\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@2.19/rest/reference/search#constructing-a-search-query). See \"[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)\" for a detailed list of qualifiers.}\n@optional {sort: str(stars/forks/help-wanted-issues/updated) # Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://docs.github.com/enterprise-server@2.19/rest/reference/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 422: Validation failed, 503: Service unavailable}\n\n@endpoint GET /search/topics\n@desc Search topics\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@2.19/rest/reference/search#constructing-a-search-query).}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 415: Preview header missing}\n\n@endpoint GET /search/users\n@desc Search users\n@required {q: str # The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/enterprise-server@2.19/rest/reference/search#constructing-a-search-query). See \"[Searching users](https://help.github.com/articles/searching-users/)\" for a detailed list of qualifiers.}\n@optional {sort: str(followers/repositories/joined) # Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server. Default: [best match](https://docs.github.com/enterprise-server@2.19/rest/reference/search#ranking-search-results), order: str(desc/asc)=desc # Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, incomplete_results: bool, items: [map]} # Response\n@errors {304: Not modified, 422: Validation failed, 503: Service unavailable}\n\n@endgroup\n\n@group setup\n@endpoint GET /setup/api/configcheck\n@desc Get the configuration status\n@returns(200) {status: str, progress: [map]} # Response\n\n@endpoint POST /setup/api/configure\n@desc Start a configuration process\n@returns(202) Response\n\n@endpoint GET /setup/api/maintenance\n@desc Get the maintenance status\n@returns(200) {status: str, scheduled_time: str, connection_services: [map]} # Response\n\n@endpoint POST /setup/api/maintenance\n@desc Enable or disable maintenance mode\n@returns(200) {status: str, scheduled_time: str, connection_services: [map]} # Response\n\n@endpoint GET /setup/api/settings\n@desc Get settings\n@returns(200) {enterprise: map{private_mode: bool, public_pages: bool, subdomain_isolation: bool, signup_enabled: bool, github_hostname: str, identicons_host: str, http_proxy: str?, auth_mode: str, expire_sessions: bool, admin_password: str?, configuration_id: int, configuration_run_count: int, avatar: map{enabled: bool, uri: str}, customer: map{name: str, email: str, uuid: str, secret_key_data: str, public_key_data: str}, license: map{seats: int, evaluation: bool, perpetual: bool, unlimited_seating: bool, support_key: str, ssh_allowed: bool, cluster_support: bool, expire_at: str}, github_ssl: map{enabled: bool, cert: str?, key: str?}, ldap: map{host: str?, port: int, base: [any], uid: str?, bind_dn: str?, password: str?, method: str, search_strategy: str, user_groups: [any], admin_group: str?, virtual_attribute_enabled: bool, recursive_group_search: bool, posix_support: bool, user_sync_emails: bool, user_sync_keys: bool, user_sync_interval: int, team_sync_interval: int, sync_enabled: bool, reconciliation: map{user: str?, org: str?}, profile: map{uid: str, name: str?, mail: str?, key: str?}}, cas: map{url: str?}, saml: map{sso_url: str?, certificate: str?, certificate_path: str?, issuer: str?, idp_initiated_sso: bool, disable_admin_demote: bool}, github_oauth: map{client_id: str, client_secret: str, organization_name: str, organization_team: str}, smtp: map{enabled: bool, address: str, authentication: str, port: str, domain: str, username: str, user_name: str, enable_starttls_auto: bool, password: str, discard-to-noreply-address: bool, support_address: str, support_address_type: str, noreply_address: str}, ntp: map{primary_server: str, secondary_server: str}, timezone: str?, snmp: map{enabled: bool, community: str}, syslog: map{enabled: bool, server: str?, protocol_name: str}, assets: str?, pages: map{enabled: bool}, collectd: map{enabled: bool, server: str?, port: int, encryption: str?, username: str?, password: str?}, mapping: map{enabled: bool, tileserver: str?, basemap: str, token: str?}, load_balancer: str?}, run_list: [str]} # Response\n\n@endpoint PUT /setup/api/settings\n@desc Set settings\n@returns(204) Response\n\n@endpoint GET /setup/api/settings/authorized-keys\n@desc Get all authorized SSH keys\n@returns(200) Response\n\n@endpoint POST /setup/api/settings/authorized-keys\n@desc Add an authorized SSH key\n@returns(201) Response\n\n@endpoint DELETE /setup/api/settings/authorized-keys\n@desc Remove an authorized SSH key\n@returns(200) Response\n\n@endpoint POST /setup/api/start\n@desc Create a GitHub license\n@returns(202) Response\n\n@endpoint POST /setup/api/upgrade\n@desc Upgrade a license\n@returns(202) Response\n\n@endgroup\n\n@group teams\n@endpoint GET /teams/{team_id}\n@desc Get a team\n@required {team_id: int}\n@returns(200) {id: int, node_id: str, url: str(uri), html_url: str(uri), name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}, members_count: int, repos_count: int, created_at: str(date-time), updated_at: str(date-time), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, updated_at: str(date-time)}, ldap_dn: str} # Response\n\n@endpoint PATCH /teams/{team_id}\n@desc Update a team\n@required {team_id: int}\n@optional {name: str # The name of the team., description: str # The description of the team., privacy: str(secret/closed) # The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are:   **For a non-nested team:**   \\* `secret` - only visible to organization owners and members of this team.   \\* `closed` - visible to all members of this organization.   **For a parent or child team:**   \\* `closed` - visible to all members of this organization., permission: str(pull/push/admin)=pull # **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of:   \\* `pull` - team members can pull, but not push to or administer newly-added repositories.   \\* `push` - team members can pull and push, but not administer newly-added repositories.   \\* `admin` - team members can pull, push and administer newly-added repositories., parent_team_id: int # The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.}\n@returns(201) {id: int, node_id: str, url: str(uri), html_url: str(uri), name: str, slug: str, description: str?, privacy: str, permission: str, members_url: str, repositories_url: str(uri), parent: map?{id: int, node_id: str, url: str(uri), members_url: str, name: str, description: str?, permission: str, privacy: str, html_url: str(uri), repositories_url: str(uri), slug: str, ldap_dn: str}, members_count: int, repos_count: int, created_at: str(date-time), updated_at: str(date-time), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?, name: str, company: str, blog: str(uri), location: str, email: str(email), has_organization_projects: bool, has_repository_projects: bool, public_repos: int, public_gists: int, followers: int, following: int, html_url: str(uri), created_at: str(date-time), type: str, total_private_repos: int, owned_private_repos: int, private_gists: int?, disk_usage: int?, collaborators: int?, billing_email: str(email)?, plan: map{name: str, space: int, private_repos: int, filled_seats: int, seats: int}, default_repository_permission: str?, members_can_create_repositories: bool?, two_factor_requirement_enabled: bool?, members_allowed_repository_creation_type: str, members_can_create_pages: bool, members_can_create_public_pages: bool, members_can_create_private_pages: bool, updated_at: str(date-time)}, ldap_dn: str} # Response\n@example_request {\"name\":\"new team name\",\"description\":\"new team description\",\"privacy\":\"closed\"}\n\n@endpoint DELETE /teams/{team_id}\n@desc Delete a team\n@required {team_id: int}\n@returns(204) Response\n\n@endpoint GET /teams/{team_id}/discussions\n@desc List discussions\n@required {team_id: int}\n@optional {direction: str(asc/desc)=desc # Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /teams/{team_id}/discussions\n@desc Create a discussion\n@required {team_id: int, title: str # The discussion post's title., body: str # The discussion post's body text.}\n@optional {private: bool=false # Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.}\n@returns(201) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, comments_count: int, comments_url: str(uri), created_at: str(date-time), last_edited_at: str(date-time)?, html_url: str(uri), node_id: str, number: int, pinned: bool, private: bool, team_url: str(uri), title: str, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"title\":\"Our first team post\",\"body\":\"Hi! This is an area for us to collaborate as a team.\"}\n\n@endpoint GET /teams/{team_id}/discussions/{discussion_number}\n@desc Get a discussion\n@required {team_id: int, discussion_number: int}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, comments_count: int, comments_url: str(uri), created_at: str(date-time), last_edited_at: str(date-time)?, html_url: str(uri), node_id: str, number: int, pinned: bool, private: bool, team_url: str(uri), title: str, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n\n@endpoint PATCH /teams/{team_id}/discussions/{discussion_number}\n@desc Update a discussion\n@required {team_id: int, discussion_number: int}\n@optional {title: str # The discussion post's title., body: str # The discussion post's body text.}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, comments_count: int, comments_url: str(uri), created_at: str(date-time), last_edited_at: str(date-time)?, html_url: str(uri), node_id: str, number: int, pinned: bool, private: bool, team_url: str(uri), title: str, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"title\":\"Welcome to our first team post\"}\n\n@endpoint DELETE /teams/{team_id}/discussions/{discussion_number}\n@desc Delete a discussion\n@required {team_id: int, discussion_number: int}\n@returns(204) Response\n\n@endpoint GET /teams/{team_id}/discussions/{discussion_number}/comments\n@desc List discussion comments\n@required {team_id: int, discussion_number: int}\n@optional {direction: str(asc/desc)=desc # Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /teams/{team_id}/discussions/{discussion_number}/comments\n@desc Create a discussion comment\n@required {team_id: int, discussion_number: int, body: str # The discussion comment's body text.}\n@returns(201) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, created_at: str(date-time), last_edited_at: str(date-time)?, discussion_url: str(uri), html_url: str(uri), node_id: str, number: int, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"body\":\"Do you like apples?\"}\n\n@endpoint GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}\n@desc Get a discussion comment\n@required {team_id: int, discussion_number: int, comment_number: int}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, created_at: str(date-time), last_edited_at: str(date-time)?, discussion_url: str(uri), html_url: str(uri), node_id: str, number: int, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n\n@endpoint PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}\n@desc Update a discussion comment\n@required {team_id: int, discussion_number: int, comment_number: int, body: str # The discussion comment's body text.}\n@returns(200) {author: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, body: str, body_html: str, body_version: str, created_at: str(date-time), last_edited_at: str(date-time)?, discussion_url: str(uri), html_url: str(uri), node_id: str, number: int, updated_at: str(date-time), url: str(uri), reactions: map{url: str(uri), total_count: int, +1: int, -1: int, laugh: int, confused: int, heart: int, hooray: int, eyes: int, rocket: int}} # Response\n@example_request {\"body\":\"Do you like pineapples?\"}\n\n@endpoint DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}\n@desc Delete a discussion comment\n@required {team_id: int, discussion_number: int, comment_number: int}\n@returns(204) Response\n\n@endpoint GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions\n@desc List reactions for a team discussion comment\n@required {accept: str=application/vnd.github.squirrel-girl-preview+json # This API is under preview and subject to change., team_id: int, discussion_number: int, comment_number: int}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion comment., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions\n@desc Create reaction for a team discussion comment\n@required {accept: str=application/vnd.github.squirrel-girl-preview+json # This API is under preview and subject to change., team_id: int, discussion_number: int, comment_number: int, content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types) to add to the team discussion comment.}\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response\n@example_request {\"content\":\"heart\"}\n\n@endpoint GET /teams/{team_id}/discussions/{discussion_number}/reactions\n@desc List reactions for a team discussion\n@required {accept: str=application/vnd.github.squirrel-girl-preview+json # This API is under preview and subject to change., team_id: int, discussion_number: int}\n@optional {content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # Returns a single [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint POST /teams/{team_id}/discussions/{discussion_number}/reactions\n@desc Create reaction for a team discussion\n@required {accept: str=application/vnd.github.squirrel-girl-preview+json # This API is under preview and subject to change., team_id: int, discussion_number: int, content: str(+1/-1/laugh/confused/heart/hooray/rocket/eyes) # The [reaction type](https://docs.github.com/enterprise-server@2.19/rest/reference/reactions#reaction-types) to add to the team discussion.}\n@returns(201) {id: int, node_id: str, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, content: str, created_at: str(date-time)} # Response\n@example_request {\"content\":\"heart\"}\n\n@endpoint GET /teams/{team_id}/members\n@desc List team members\n@required {team_id: int}\n@optional {role: str(member/maintainer/all)=all # Filters members returned by their role in the team. Can be one of:   \\* `member` - normal members of the team.   \\* `maintainer` - team maintainers.   \\* `all` - all members of the team., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /teams/{team_id}/members/{username}\n@desc Get team member (Legacy)\n@required {team_id: int, username: str}\n@returns(204) if user is a member\n@errors {404: if user is not a member}\n\n@endpoint PUT /teams/{team_id}/members/{username}\n@desc Add team member (Legacy)\n@required {team_id: int, username: str}\n@returns(204) Response\n@errors {403: Forbidden, 404: Not Found if team synchronization is set up, 422: Unprocessable Entity if you attempt to add an organization to a team or you attempt to add a user to a team when they are not a member of at least one other team in the same organization}\n\n@endpoint DELETE /teams/{team_id}/members/{username}\n@desc Remove team member (Legacy)\n@required {team_id: int, username: str}\n@returns(204) Response\n@errors {404: Not Found if team synchronization is setup}\n\n@endpoint GET /teams/{team_id}/memberships/{username}\n@desc Get team membership for a user\n@required {team_id: int, username: str}\n@returns(200) {url: str(uri), role: str, state: str} # Response\n\n@endpoint PUT /teams/{team_id}/memberships/{username}\n@desc Add or update team membership for a user\n@required {team_id: int, username: str}\n@optional {role: str(member/maintainer)=member # The role that this user should have in the team. Can be one of:   \\* `member` - a normal member of the team.   \\* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.}\n@returns(200) {url: str(uri), role: str, state: str} # Response\n@errors {422: Unprocessable Entity if you attempt to add an organization to a team}\n\n@endpoint DELETE /teams/{team_id}/memberships/{username}\n@desc Remove team membership for a user\n@required {team_id: int, username: str}\n@returns(204) Response\n\n@endpoint GET /teams/{team_id}/projects\n@desc List team projects\n@required {accept: str=application/vnd.github.inertia-preview+json # This API is under preview and subject to change., team_id: int}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /teams/{team_id}/projects/{project_id}\n@desc Check team permissions for a project\n@required {accept: str=application/vnd.github.inertia-preview+json # This API is under preview and subject to change., team_id: int, project_id: int}\n@returns(200) {owner_url: str, url: str, html_url: str, columns_url: str, id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str, updated_at: str, organization_permission: str, private: bool, permissions: map{read: bool, write: bool, admin: bool}} # Response\n@errors {404: Not Found if project is not managed by this team}\n\n@endpoint PUT /teams/{team_id}/projects/{project_id}\n@desc Add or update team project permissions\n@required {accept: str=application/vnd.github.inertia-preview+json # This API is under preview and subject to change., team_id: int, project_id: int}\n@optional {permission: str(read/write/admin) # The permission to grant to the team for this project. Can be one of:   \\* `read` - team members can read, but not write to or administer this project.   \\* `write` - team members can read and write, but not administer this project.   \\* `admin` - team members can read, write and administer this project.   Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/enterprise-server@2.19/rest/overview/resources-in-the-rest-api#http-verbs).\"   **Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited from a parent team.}\n@returns(204) Response\n@errors {403: Forbidden if the project is not owned by the organization}\n\n@endpoint DELETE /teams/{team_id}/projects/{project_id}\n@desc Remove a project from a team\n@required {team_id: int, project_id: int}\n@returns(204) Response\n\n@endpoint GET /teams/{team_id}/repos\n@desc List team repositories\n@required {team_id: int}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /teams/{team_id}/repos/{owner}/{repo}\n@desc Check team permissions for a repository\n@required {team_id: int, owner: str, repo: str}\n@returns(200) {id: int, node_id: str, name: str, full_name: str, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str?, hooks_url: str(uri), svn_url: str, homepage: str?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, template_repository: map?{id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool}, subscribers_count: int, network_count: int, code_of_conduct: map{key: str, name: str, url: str(uri), body: str, html_url: str(uri)?}, license: map?{key: str, name: str, spdx_id: str, url: str, node_id: str}, forks: int, open_issues: int, watchers: int, allow_forking: bool, anonymous_access_enabled: bool} # Alternative response with extra repository information\n@returns(204) Response if repository is managed by this team\n@errors {404: Not Found if repository is not managed by this team}\n\n@endpoint PUT /teams/{team_id}/repos/{owner}/{repo}\n@desc Add or update team repository permissions\n@required {team_id: int, owner: str, repo: str}\n@optional {permission: str(pull/push/admin) # The permission to grant the team on this repository. Can be one of:   \\* `pull` - team members can pull, but not push to or administer this repository.   \\* `push` - team members can pull and push, but not administer this repository.   \\* `admin` - team members can pull, push and administer this repository.      If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.   **Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited through a parent team.}\n@returns(204) Response\n\n@endpoint DELETE /teams/{team_id}/repos/{owner}/{repo}\n@desc Remove a repository from a team\n@required {team_id: int, owner: str, repo: str}\n@returns(204) Response\n\n@endpoint GET /teams/{team_id}/teams\n@desc List child teams\n@required {team_id: int}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) if child teams exist\n\n@endgroup\n\n@group user\n@endpoint GET /user\n@desc Get the authenticated user\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint PATCH /user\n@desc Update the authenticated user\n@optional {name: str # The new name of the user., email: str # The publicly visible email address of the user., blog: str # The new blog URL of the user., twitter_username: str # The new Twitter username of the user., company: str # The new company of the user., location: str # The new location of the user., hireable: bool # The new hiring availability of the user., bio: str # The new short biography of the user.}\n@returns(200) {login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, name: str?, company: str?, blog: str?, location: str?, email: str(email)?, hireable: bool?, bio: str?, public_repos: int, public_gists: int, followers: int, following: int, created_at: str(date-time), updated_at: str(date-time), private_gists: int, total_private_repos: int, owned_private_repos: int, disk_usage: int, collaborators: int, two_factor_authentication: bool, plan: map{collaborators: int, name: str, space: int, private_repos: int}, suspended_at: str(date-time)?, business_plus: bool, ldap_dn: str} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint GET /user/emails\n@desc List email addresses for the authenticated user\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /user/emails\n@desc Add an email address for the authenticated user\n@returns(201) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint DELETE /user/emails\n@desc Delete an email address for the authenticated user\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint GET /user/followers\n@desc List followers of the authenticated user\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /user/following\n@desc List the people the authenticated user follows\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /user/following/{username}\n@desc Check if a person is followed by the authenticated user\n@required {username: str}\n@returns(204) if the person is followed by the authenticated user\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: if the person is not followed by the authenticated user}\n\n@endpoint PUT /user/following/{username}\n@desc Follow a user\n@required {username: str}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /user/following/{username}\n@desc Unfollow a user\n@required {username: str}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /user/gpg_keys\n@desc List GPG keys for the authenticated user\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /user/gpg_keys\n@desc Create a GPG key for the authenticated user\n@required {armored_public_key: str # A GPG key in ASCII-armored format.}\n@returns(201) {id: int, primary_key_id: int?, key_id: str, public_key: str, emails: [map], subkeys: [map], can_sign: bool, can_encrypt_comms: bool, can_encrypt_storage: bool, can_certify: bool, created_at: str(date-time), expires_at: str(date-time)?, raw_key: str?} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint GET /user/gpg_keys/{gpg_key_id}\n@desc Get a GPG key for the authenticated user\n@required {gpg_key_id: int # gpg_key_id parameter}\n@returns(200) {id: int, primary_key_id: int?, key_id: str, public_key: str, emails: [map], subkeys: [map], can_sign: bool, can_encrypt_comms: bool, can_encrypt_storage: bool, can_certify: bool, created_at: str(date-time), expires_at: str(date-time)?, raw_key: str?} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /user/gpg_keys/{gpg_key_id}\n@desc Delete a GPG key for the authenticated user\n@required {gpg_key_id: int # gpg_key_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint GET /user/installations\n@desc List app installations accessible to the user access token\n@required {accept: str=application/vnd.github.machine-man-preview+json # This API is under preview and subject to change.}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, installations: [map]} # You can find the permissions for the installation under the `permissions` key.\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 415: Preview header missing}\n\n@endpoint GET /user/installations/{installation_id}/repositories\n@desc List repositories accessible to the user access token\n@required {accept: str=application/vnd.github.machine-man-preview+json # This API is under preview and subject to change., installation_id: int # installation_id parameter}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) {total_count: int, repository_selection: str, repositories: [map]} # The access the user has to each repository is included in the hash under the `permissions` key.\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint PUT /user/installations/{installation_id}/repositories/{repository_id}\n@desc Add a repository to an app installation\n@required {installation_id: int # installation_id parameter, repository_id: int}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /user/installations/{installation_id}/repositories/{repository_id}\n@desc Remove a repository from an app installation\n@required {installation_id: int # installation_id parameter, repository_id: int}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /user/issues\n@desc List user account issues assigned to the authenticated user\n@optional {filter: str(assigned/created/mentioned/subscribed/repos/all)=assigned # Indicates which sorts of issues to return. Can be one of:   \\* `assigned`: Issues assigned to you   \\* `created`: Issues created by you   \\* `mentioned`: Issues mentioning you   \\* `subscribed`: Issues you're subscribed to updates for   \\* `all` or `repos`: All issues the authenticated user can see, regardless of participation or creation, state: str(open/closed/all)=open # Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`., labels: str # A list of comma separated label names. Example: `bug,ui,@high`, sort: str(created/updated/comments)=created # What to sort results by. Can be either `created`, `updated`, `comments`., direction: str(asc/desc)=desc # One of `asc` (ascending) or `desc` (descending)., since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 404: Resource not found}\n\n@endpoint GET /user/keys\n@desc List public SSH keys for the authenticated user\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint POST /user/keys\n@desc Create a public SSH key for the authenticated user\n@required {key: str # The public SSH key to add to your GitHub account.}\n@optional {title: str # A descriptive name for the new key.}\n@returns(201) {key: str, id: int, url: str, title: str, created_at: str(date-time), verified: bool, read_only: bool} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint GET /user/keys/{key_id}\n@desc Get a public SSH key for the authenticated user\n@required {key_id: int # key_id parameter}\n@returns(200) {key: str, id: int, url: str, title: str, created_at: str(date-time), verified: bool, read_only: bool} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /user/keys/{key_id}\n@desc Delete a public SSH key for the authenticated user\n@required {key_id: int # key_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /user/memberships/orgs\n@desc List organization memberships for the authenticated user\n@optional {state: str(active/pending) # Indicates the state of the memberships to return. Can be either `active` or `pending`. If not specified, the API returns both active and pending memberships., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed}\n\n@endpoint GET /user/memberships/orgs/{org}\n@desc Get an organization membership for the authenticated user\n@required {org: str}\n@returns(200) {url: str(uri), state: str, role: str, organization_url: str(uri), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?}, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, permissions: map{can_create_repository: bool}} # Response\n@errors {403: Forbidden, 404: Resource not found}\n\n@endpoint PATCH /user/memberships/orgs/{org}\n@desc Update an organization membership for the authenticated user\n@required {org: str, state: str # The state that the membership should be in. Only `\"active\"` will be accepted.}\n@returns(200) {url: str(uri), state: str, role: str, organization_url: str(uri), organization: map{login: str, id: int, node_id: str, url: str(uri), repos_url: str(uri), events_url: str(uri), hooks_url: str, issues_url: str, members_url: str, public_members_url: str, avatar_url: str, description: str?}, user: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, permissions: map{can_create_repository: bool}} # Response\n@errors {403: Forbidden, 404: Resource not found, 422: Validation failed}\n@example_request {\"state\":\"active\"}\n\n@endpoint GET /user/orgs\n@desc List organizations for the authenticated user\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint POST /user/projects\n@desc Create a user project\n@required {name: str # Name of the project}\n@optional {body: str # Body of the project}\n@returns(201) {owner_url: str(uri), url: str(uri), html_url: str(uri), columns_url: str(uri), id: int, node_id: str, name: str, body: str?, number: int, state: str, creator: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, created_at: str(date-time), updated_at: str(date-time), organization_permission: str, private: bool} # Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 415: Preview header missing, 422: Validation failed}\n\n@endpoint GET /user/public_emails\n@desc List public email addresses for the authenticated user\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /user/repos\n@desc List repositories for the authenticated user\n@optional {visibility: str(all/public/private)=all # Can be one of `all`, `public`, or `private`. Note: For GitHub AE, can be one of `all`, `internal`, or `private`., affiliation: str=owner,collaborator,organization_member # Comma-separated list of values. Can include:   \\* `owner`: Repositories that are owned by the authenticated user.   \\* `collaborator`: Repositories that the user has been added to as a collaborator.   \\* `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on., type: str(all/owner/public/private/member)=all # Can be one of `all`, `owner`, `public`, `private`, `member`. Note: For GitHub AE, can be one of `all`, `owner`, `internal`, `private`, `member`. Default: `all`      Will cause a `422` error if used in the same request as **visibility** or **affiliation**. Will cause a `422` error if used in the same request as **visibility** or **affiliation**., sort: str(created/updated/pushed/full_name)=full_name # Can be one of `created`, `updated`, `pushed`, `full_name`., direction: str(asc/desc) # Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`, per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch., since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., before: str(date-time) # Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 422: Validation failed}\n\n@endpoint POST /user/repos\n@desc Create a repository for the authenticated user\n@required {name: str # The name of the repository.}\n@optional {description: str # A short description of the repository., homepage: str # A URL with more information about the repository., private: bool=false # Whether the repository is private., has_issues: bool=true # Whether issues are enabled., has_projects: bool=true # Whether projects are enabled., has_wiki: bool=true # Whether the wiki is enabled., team_id: int # The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization., auto_init: bool=false # Whether the repository is initialized with a minimal README., gitignore_template: str # The desired language or platform to apply to the .gitignore., license_template: str # The license keyword of the open source license for this repository., allow_squash_merge: bool=true # Whether to allow squash merges for pull requests., allow_merge_commit: bool=true # Whether to allow merge commits for pull requests., allow_rebase_merge: bool=true # Whether to allow rebase merges for pull requests., delete_branch_on_merge: bool=false # Whether to delete head branches when pull requests are merged, has_downloads: bool=true # Whether downloads are enabled., is_template: bool=false # Whether this repository acts as a template that can be used to generate new repositories.}\n@returns(201) {id: int, node_id: str, name: str, full_name: str, license: map?{key: str, name: str, url: str(uri)?, spdx_id: str?, node_id: str, html_url: str(uri)}, organization: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, forks: int, permissions: map{admin: bool, pull: bool, triage: bool, push: bool, maintain: bool}, owner: map{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, private: bool, html_url: str(uri), description: str?, fork: bool, url: str(uri), archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str(uri), deployments_url: str(uri), downloads_url: str(uri), events_url: str(uri), forks_url: str(uri), git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str(uri), merges_url: str(uri), milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str(uri), statuses_url: str, subscribers_url: str(uri), subscription_url: str(uri), tags_url: str(uri), teams_url: str(uri), trees_url: str, clone_url: str, mirror_url: str(uri)?, hooks_url: str(uri), svn_url: str(uri), homepage: str(uri)?, language: str?, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str(date-time)?, created_at: str(date-time)?, updated_at: str(date-time)?, allow_rebase_merge: bool, template_repository: map?{id: int, node_id: str, name: str, full_name: str, owner: map{login: str, id: int, node_id: str, avatar_url: str, gravatar_id: str, url: str, html_url: str, followers_url: str, following_url: str, gists_url: str, starred_url: str, subscriptions_url: str, organizations_url: str, repos_url: str, events_url: str, received_events_url: str, type: str, site_admin: bool}, private: bool, html_url: str, description: str, fork: bool, url: str, archive_url: str, assignees_url: str, blobs_url: str, branches_url: str, collaborators_url: str, comments_url: str, commits_url: str, compare_url: str, contents_url: str, contributors_url: str, deployments_url: str, downloads_url: str, events_url: str, forks_url: str, git_commits_url: str, git_refs_url: str, git_tags_url: str, git_url: str, issue_comment_url: str, issue_events_url: str, issues_url: str, keys_url: str, labels_url: str, languages_url: str, merges_url: str, milestones_url: str, notifications_url: str, pulls_url: str, releases_url: str, ssh_url: str, stargazers_url: str, statuses_url: str, subscribers_url: str, subscription_url: str, tags_url: str, teams_url: str, trees_url: str, clone_url: str, mirror_url: str, hooks_url: str, svn_url: str, homepage: str, language: str, forks_count: int, stargazers_count: int, watchers_count: int, size: int, default_branch: str, open_issues_count: int, is_template: bool, topics: [str], has_issues: bool, has_projects: bool, has_wiki: bool, has_pages: bool, has_downloads: bool, archived: bool, disabled: bool, pushed_at: str, created_at: str, updated_at: str, permissions: map{admin: bool, maintain: bool, push: bool, triage: bool, pull: bool}, allow_rebase_merge: bool, allow_squash_merge: bool, allow_merge_commit: bool, subscribers_count: int, network_count: int, anonymous_access_enabled: bool}, allow_squash_merge: bool, allow_merge_commit: bool, allow_forking: bool, subscribers_count: int, network_count: int, open_issues: int, watchers: int, master_branch: str, starred_at: str, anonymous_access_enabled: bool} # Response\n@errors {304: Not modified, 400: Bad Request, 401: Requires authentication, 403: Forbidden, 404: Resource not found, 422: Validation failed}\n\n@endpoint GET /user/repository_invitations\n@desc List repository invitations for the authenticated user\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint PATCH /user/repository_invitations/{invitation_id}\n@desc Accept a repository invitation\n@required {invitation_id: int # invitation_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found, 409: Conflict}\n\n@endpoint DELETE /user/repository_invitations/{invitation_id}\n@desc Decline a repository invitation\n@required {invitation_id: int # invitation_id parameter}\n@returns(204) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found, 409: Conflict}\n\n@endpoint GET /user/starred\n@desc List repositories starred by the authenticated user\n@optional {sort: str(created/updated)=created # One of `created` (when the repository was starred) or `updated` (when it was last pushed to)., direction: str(asc/desc)=desc # One of `asc` (ascending) or `desc` (descending)., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /user/starred/{owner}/{repo}\n@desc Check if a repository is starred by the authenticated user\n@required {owner: str, repo: str}\n@returns(204) Response if this repository is starred by you\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Not Found if this repository is not starred by you}\n\n@endpoint PUT /user/starred/{owner}/{repo}\n@desc Star a repository for the authenticated user\n@required {owner: str, repo: str}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint DELETE /user/starred/{owner}/{repo}\n@desc Unstar a repository for the authenticated user\n@required {owner: str, repo: str}\n@returns(204) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden, 404: Resource not found}\n\n@endpoint GET /user/subscriptions\n@desc List repositories watched by the authenticated user\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 401: Requires authentication, 403: Forbidden}\n\n@endpoint GET /user/teams\n@desc List teams for the authenticated user\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {304: Not modified, 403: Forbidden, 404: Resource not found}\n\n@endgroup\n\n@group users\n@endpoint GET /users\n@desc List users\n@optional {since: int # A user ID. Only return users with an ID greater than this ID., per_page: int=30 # Results per page (max 100)}\n@returns(200) Response\n@errors {304: Not modified}\n\n@endpoint GET /users/{username}\n@desc Get a user\n@required {username: str}\n@returns(200) Response\n@returns(202) Accepted\n@errors {404: Resource not found}\n\n@endpoint GET /users/{username}/events\n@desc List events for the authenticated user\n@required {username: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /users/{username}/events/orgs/{org}\n@desc List organization events for the authenticated user\n@required {username: str, org: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /users/{username}/events/public\n@desc List public events for a user\n@required {username: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /users/{username}/followers\n@desc List followers of a user\n@required {username: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /users/{username}/following\n@desc List the people a user follows\n@required {username: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /users/{username}/following/{target_user}\n@desc Check if a user follows another user\n@required {username: str, target_user: str}\n@returns(204) if the user follows the target user\n@errors {404: if the user does not follow the target user}\n\n@endpoint GET /users/{username}/gists\n@desc List gists for a user\n@required {username: str}\n@optional {since: str(date-time) # Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {422: Validation failed}\n\n@endpoint GET /users/{username}/gpg_keys\n@desc List GPG keys for a user\n@required {username: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /users/{username}/hovercard\n@desc Get contextual information for a user\n@required {username: str}\n@optional {subject_type: str(organization/repository/issue/pull_request) # Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`., subject_id: str # Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`.}\n@returns(200) {contexts: [map]} # Response\n@errors {404: Resource not found, 422: Validation failed}\n\n@endpoint GET /users/{username}/installation\n@desc Get a user installation for the authenticated app\n@required {accept: str=application/vnd.github.machine-man-preview+json # This API is under preview and subject to change., username: str}\n@returns(200) {id: int, account: any?, repository_selection: str, access_tokens_url: str(uri), repositories_url: str(uri), html_url: str(uri), app_id: int, target_id: int, target_type: str, permissions: map{deployments: str, checks: str, metadata: str, contents: str, pull_requests: str, statuses: str, issues: str, organization_administration: str}, events: [str], created_at: str(date-time), updated_at: str(date-time), single_file_name: str?, app_slug: str, suspended_by: map?{name: str?, email: str?, login: str, id: int, node_id: str, avatar_url: str(uri), gravatar_id: str?, url: str(uri), html_url: str(uri), followers_url: str(uri), following_url: str, gists_url: str, starred_url: str, subscriptions_url: str(uri), organizations_url: str(uri), repos_url: str(uri), events_url: str, received_events_url: str(uri), type: str, site_admin: bool, starred_at: str}, suspended_at: str(date-time)?, contact_email: str?} # Response\n\n@endpoint GET /users/{username}/keys\n@desc List public keys for a user\n@required {username: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /users/{username}/orgs\n@desc List organizations for a user\n@required {username: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /users/{username}/projects\n@desc List user projects\n@required {username: str}\n@optional {state: str(open/closed/all)=open # Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n@errors {415: Preview header missing, 422: Validation failed}\n\n@endpoint GET /users/{username}/received_events\n@desc List events received by the authenticated user\n@required {username: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /users/{username}/received_events/public\n@desc List public events received by a user\n@required {username: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /users/{username}/repos\n@desc List repositories for a user\n@required {username: str}\n@optional {type: str(all/owner/member)=owner # Can be one of `all`, `owner`, `member`., sort: str(created/updated/pushed/full_name)=full_name # Can be one of `created`, `updated`, `pushed`, `full_name`., direction: str(asc/desc) # Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`, per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint PUT /users/{username}/site_admin\n@desc Promote a user to be a site administrator\n@required {username: str}\n@returns(204) Response\n\n@endpoint DELETE /users/{username}/site_admin\n@desc Demote a site administrator\n@required {username: str}\n@returns(204) Response\n\n@endpoint GET /users/{username}/starred\n@desc List repositories starred by a user\n@required {username: str}\n@optional {sort: str(created/updated)=created # One of `created` (when the repository was starred) or `updated` (when it was last pushed to)., direction: str(asc/desc)=desc # One of `asc` (ascending) or `desc` (descending)., per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint GET /users/{username}/subscriptions\n@desc List repositories watched by a user\n@required {username: str}\n@optional {per_page: int=30 # Results per page (max 100), page: int=1 # Page number of the results to fetch.}\n@returns(200) Response\n\n@endpoint PUT /users/{username}/suspended\n@desc Suspend a user\n@required {username: str}\n@optional {reason: str # The reason the user is being suspended. This message will be logged in the [audit log](https://help.github.com/enterprise/admin/articles/audit-logging/). If you don't provide a `reason`, it will default to \"Suspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.}\n@returns(204) Response\n\n@endpoint DELETE /users/{username}/suspended\n@desc Unsuspend a user\n@required {username: str}\n@optional {reason: str # The reason the user is being unsuspended. This message will be logged in the [audit log](https://help.github.com/enterprise/admin/articles/audit-logging/). If you don't provide a `reason`, it will default to \"Unsuspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.}\n@returns(204) Response\n\n@endgroup\n\n@group zen\n@endpoint GET /zen\n@desc Get the Zen of GitHub\n@returns(200) Response\n\n@endgroup\n\n@end\n"}}